// 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; }