File tree 1 file changed +10
-4
lines changed
1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change
1
+ [%% raw " import NodeFetch from 'node-fetch'" ]
2
+
1
3
type body
2
4
type bodyInit
3
5
type headers
@@ -364,7 +366,11 @@ module Response = struct
364
366
end
365
367
366
368
367
- external fetch : string -> response Js.Promise .t = " node-fetch" [@@ bs.module ]
368
- external fetchWithInit : string -> requestInit -> response Js.Promise .t = " node-fetch" [@@ bs.module ]
369
- external fetchWithRequest : request -> response Js.Promise .t = " node-fetch" [@@ bs.module ]
370
- external fetchWithRequestInit : request -> requestInit -> response Js.Promise .t = " node-fetch" [@@ bs.module ]
369
+ external fetch : string -> response Js.Promise .t = " NodeFetch" [@@ bs.val]
370
+ external fetchWithInit : string -> requestInit -> response Js.Promise .t = " NodeFetch" [@@ bs.val]
371
+ external fetchWithRequest : request -> response Js.Promise .t = " NodeFetch" [@@ bs.val]
372
+ external fetchWithRequestInit : request -> requestInit -> response Js.Promise .t = " NodeFetch" [@@ bs.val]
373
+ let fetch = fetch
374
+ let fetchWithInit = fetchWithInit
375
+ let fetchWithRequest = fetchWithRequest
376
+ let fetchWithRequestInit = fetchWithRequestInit
You can’t perform that action at this time.
0 commit comments