From 4312d6e28c6192c1ebd87e8c81425d8560722bd9 Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Mon, 8 Feb 2016 18:15:20 -0800 Subject: [PATCH] Temporary fake .d.ts for domain-tasks until moved to definitelytyped --- samples/react/MusicStore/ReactApp/fx/domain-tasks.d.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 samples/react/MusicStore/ReactApp/fx/domain-tasks.d.ts diff --git a/samples/react/MusicStore/ReactApp/fx/domain-tasks.d.ts b/samples/react/MusicStore/ReactApp/fx/domain-tasks.d.ts new file mode 100644 index 0000000..33013aa --- /dev/null +++ b/samples/react/MusicStore/ReactApp/fx/domain-tasks.d.ts @@ -0,0 +1,10 @@ +// TODO: Move this on to definitelytyped, and take a dependency on whatwg-fetch +// so that the 'fetch' function can have the correct type args + +declare module 'domain-tasks' { + function addTask(task: PromiseLike): void; +} + +declare module 'domain-tasks/fetch' { + function fetch(url, options?): Promise; +}