diff --git a/node-fetch/node-fetch-tests.ts b/node-fetch/node-fetch-tests.ts
index 28d7ff7766..2909b28cfa 100644
--- a/node-fetch/node-fetch-tests.ts
+++ b/node-fetch/node-fetch-tests.ts
@@ -1,6 +1,6 @@
///
-import fetch = require('node-fetch');
+import * as fetch from 'node-fetch';
function test_fetchUrlWithOptions() {
var headers = new _fetch.Headers();
diff --git a/node-fetch/node-fetch.d.ts b/node-fetch/node-fetch.d.ts
index 5cf41ea992..e96071224e 100644
--- a/node-fetch/node-fetch.d.ts
+++ b/node-fetch/node-fetch.d.ts
@@ -87,9 +87,14 @@ declare module _fetch {
type BodyInit = ArrayBuffer | ArrayBufferView | Blob | FormData | string;
type RequestInfo = Request | string;
- function fetch(url: string | Request, init?: RequestInit): Promise;
+ interface FetchStatic {
+ (url: string | Request, init?: RequestInit): Promise;
+ }
+
}
declare module "node-fetch" {
- export = _fetch.fetch;
+ var fetch: _fetch.FetchStatic;
+ namespace fetch {}
+ export = fetch;
}