File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,8 @@ const params = {
94
94
}
95
95
```
96
96
97
- Optional ` opts ` can include any property you want passed to ` fetch ` . The ` headers ` property is merged with some
98
- ` defaultHeaders ` .
97
+ Optional ` opts ` can include any property you want passed to [ ` node- fetch` ] ( https://github.com/bitinn/node-fetch ) . The
98
+ ` headers ` property is merged with some ` defaultHeaders ` .
99
99
100
100
``` js
101
101
// example opts
@@ -105,7 +105,7 @@ const opts = {
105
105
' User-agent' : ' netlify-js-client' ,
106
106
accept: ' application/json' ,
107
107
},
108
- // any other properties for fetch
108
+ // any other properties for node- fetch
109
109
}
110
110
```
111
111
Original file line number Diff line number Diff line change 44
44
"@netlify/open-api" : " ^2.37.0" ,
45
45
"lodash-es" : " ^4.17.21" ,
46
46
"micro-api-client" : " ^3.3.0" ,
47
+ "node-fetch" : " ^3.0.0" ,
47
48
"p-wait-for" : " ^5.0.0" ,
48
49
"qs" : " ^6.9.6"
49
50
},
Original file line number Diff line number Diff line change 1
1
import type { ReadStream } from 'node:fs'
2
2
3
3
import type { operations } from '@netlify/open-api'
4
+ import type { RequestInit } from 'node-fetch'
4
5
5
6
/**
6
7
* Determines whether all keys in T are optional.
@@ -205,7 +206,7 @@ export type DynamicMethods = {
205
206
[ K in keyof operations ] : (
206
207
params : OperationParams < K > ,
207
208
/**
208
- * Any properties you want passed to `fetch`.
209
+ * Any properties you want passed to `node- fetch`.
209
210
*
210
211
* The `headers` property is merged with some `defaultHeaders`:
211
212
* ```ts
You can’t perform that action at this time.
0 commit comments