Skip to content

Commit 4312d6e

Browse files
Temporary fake .d.ts for domain-tasks until moved to definitelytyped
1 parent ad55e9c commit 4312d6e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// TODO: Move this on to definitelytyped, and take a dependency on whatwg-fetch
2+
// so that the 'fetch' function can have the correct type args
3+
4+
declare module 'domain-tasks' {
5+
function addTask(task: PromiseLike<any>): void;
6+
}
7+
8+
declare module 'domain-tasks/fetch' {
9+
function fetch(url, options?): Promise<any>;
10+
}

0 commit comments

Comments
 (0)