7
7
8
8
### Interfaces
9
9
10
- - [ FullRequestConfig] ( ../wiki/Interface:%20FullRequestConfig )
10
+ - [ RequestConfig] ( ../wiki/Interface:%20RequestConfig )
11
+ - [ RequestParams] ( ../wiki/Interface:%20RequestParams )
11
12
- [ RequestResult] ( ../wiki/Interface:%20RequestResult )
12
13
13
14
### Type aliases
14
15
15
16
- [ GeneralConfig] ( ../wiki/Exports#generalconfig )
16
17
- [ RequestBodyData] ( ../wiki/Exports#requestbodydata )
17
- - [ RequestConfig] ( ../wiki/Exports#requestconfig )
18
18
- [ RequestHeaders] ( ../wiki/Exports#requestheaders )
19
19
- [ RequestSearchParams] ( ../wiki/Exports#requestsearchparams )
20
20
- [ RequestUriParams] ( ../wiki/Exports#requesturiparams )
28
28
29
29
### Functions
30
30
31
+ - [ generatorToPromise] ( ../wiki/Exports#generatortopromise )
32
+ - [ isAntonioError] ( ../wiki/Exports#isantonioerror )
31
33
- [ runIterableStream] ( ../wiki/Exports#runiterablestream )
32
34
33
35
## Type aliases
38
40
39
41
#### Type declaration
40
42
41
- | Name | Type |
42
- | :------------- | :------------------------------------------- |
43
- | ` logger ` | ` RootLogger ` |
44
- | ` resolverType ` | [ ResolverType] ( ../wiki/Exports#resolvertype ) |
43
+ | Name | Type |
44
+ | :------- | :----------- |
45
+ | ` logger ` | ` RootLogger ` |
45
46
46
47
#### Defined in
47
48
48
- [ packages/@ackee/antonio-core /src/modules/core/general-config/index.ts:7 ] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/modules/core/general-config/index.ts#L7 )
49
+ [ packages/@ackee/antonio-core /src/modules/core/general-config/index.ts:4 ] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/modules/core/general-config/index.ts#L4 )
49
50
50
51
---
51
52
52
53
### RequestBodyData
53
54
54
- Ƭ ** RequestBodyData** : ` BodyInit ` \| ` Primitive ` \| ` PlainObject ` \| ` any ` [ ]
55
+ Ƭ ** RequestBodyData** : ` BodyInit ` \| ` Primitive ` \| ` object ` \| ` any ` [ ]
55
56
56
57
#### Defined in
57
58
58
- [ packages/@ackee/antonio-core /src/types.ts:9] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d/packages/@ackee/antonio-core/src/types.ts#L9 )
59
-
60
- ---
61
-
62
- ### RequestConfig
63
-
64
- Ƭ ** RequestConfig** : ` Partial ` <[ FullRequestConfig] ( ../wiki/Interface:%20FullRequestConfig ) \> & { ` cancelToken? ` : ` AbortSignal ` }
65
-
66
- #### Defined in
67
-
68
- [ packages/@ackee/antonio-core /src/types.ts:144] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d/packages/@ackee/antonio-core/src/types.ts#L144 )
59
+ [ packages/@ackee/antonio-core /src/types.ts:7] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc/packages/@ackee/antonio-core/src/types.ts#L7 )
69
60
70
61
---
71
62
72
63
### RequestHeaders
73
64
74
- Ƭ ** RequestHeaders** : ` Headers ` \| ` HeadersInit ` \| ` Params `
65
+ Ƭ ** RequestHeaders** : ` Headers ` \| ` HeadersInit ` \| { [ key: string ] : ` string ` ; }
75
66
76
67
#### Defined in
77
68
78
- [ packages/@ackee/antonio-core /src/types.ts:91 ] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/types.ts#L91 )
69
+ [ packages/@ackee/antonio-core /src/types.ts:85 ] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/types.ts#L85 )
79
70
80
71
---
81
72
82
73
### RequestSearchParams
83
74
84
- Ƭ ** RequestSearchParams** : ` URLSearchParams ` \| ` Params `
75
+ Ƭ ** RequestSearchParams** : ` URLSearchParams ` \| { [ key: string ] : ` string ` \| ` number ` \| ` boolean ` \| ( ` string ` \| ` number ` \| ` boolean ` ) [ ] ; }
85
76
86
77
An instace of ` URLSearchParams ` or a plain object.
87
78
@@ -103,19 +94,20 @@ api.get('/posts', {
103
94
params: {
104
95
page: 1 ,
105
96
limit: 20 ,
97
+ userIds: [1 , 2 , 3 ],
106
98
},
107
99
});
108
100
```
109
101
110
102
#### Defined in
111
103
112
- [ packages/@ackee/antonio-core /src/types.ts:126 ] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/types.ts#L126 )
104
+ [ packages/@ackee/antonio-core /src/types.ts:128 ] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/types.ts#L128 )
113
105
114
106
---
115
107
116
108
### RequestUriParams
117
109
118
- Ƭ ** RequestUriParams** : ` Params `
110
+ Ƭ ** RequestUriParams** : ` Object `
119
111
120
112
** ` example ` **
121
113
@@ -129,9 +121,13 @@ const { data } =
129
121
console .assert (data .id === ' 1' );
130
122
```
131
123
124
+ #### Index signature
125
+
126
+ ▪ [ key: ` string ` ] : ` string ` \| ` number `
127
+
132
128
#### Defined in
133
129
134
- [ packages/@ackee/antonio-core /src/types.ts:103 ] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/types.ts#L103 )
130
+ [ packages/@ackee/antonio-core /src/types.ts:102 ] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/types.ts#L102 )
135
131
136
132
---
137
133
@@ -141,17 +137,17 @@ console.assert(data.id === '1');
141
137
142
138
#### Defined in
143
139
144
- [ packages/@ackee/antonio-core /src/modules/core/constants/index.ts:7] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/modules/core/constants/index.ts#L7 )
140
+ [ packages/@ackee/antonio-core /src/modules/core/constants/index.ts:7] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/modules/core/constants/index.ts#L7 )
145
141
146
142
---
147
143
148
144
### ResponseData
149
145
150
- Ƭ ** ResponseData** : ` ArrayBuffer ` \| ` FormData ` \| ` ReadableStream ` <Uint8Array\> \| ` ArrayBufferView ` \| ` Blob ` \| ` Primitive ` \| ` PlainObject ` \| ` any ` [ ] \| ` IterableStream ` \| ` null `
146
+ Ƭ ** ResponseData** : ` ArrayBuffer ` \| ` FormData ` \| ` ReadableStream ` <Uint8Array\> \| ` ArrayBufferView ` \| ` Blob ` \| ` Primitive ` \| ` object ` \| ` any ` [ ] \| ` IterableStream ` \| ` null `
151
147
152
148
#### Defined in
153
149
154
- [ packages/@ackee/antonio-core /src/types.ts:75 ] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/types.ts#L75 )
150
+ [ packages/@ackee/antonio-core /src/types.ts:73 ] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/types.ts#L73 )
155
151
156
152
---
157
153
@@ -227,7 +223,7 @@ function* fetchPosts() {
227
223
228
224
#### Defined in
229
225
230
- [ packages/@ackee/antonio-core /src/types.ts:73 ] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/types.ts#L73 )
226
+ [ packages/@ackee/antonio-core /src/types.ts:71 ] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/types.ts#L71 )
231
227
232
228
## Variables
233
229
@@ -244,10 +240,56 @@ function* fetchPosts() {
244
240
245
241
#### Defined in
246
242
247
- [ packages/@ackee/antonio-core /src/modules/core/constants/index.ts:1] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/modules/core/constants/index.ts#L1 )
243
+ [ packages/@ackee/antonio-core /src/modules/core/constants/index.ts:1] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/modules/core/constants/index.ts#L1 )
248
244
249
245
## Functions
250
246
247
+ ### generatorToPromise
248
+
249
+ ▸ ** generatorToPromise** <T\> (` it ` ): ` Promise ` <T\>
250
+
251
+ #### Type parameters
252
+
253
+ | Name |
254
+ | :--- |
255
+ | ` T ` |
256
+
257
+ #### Parameters
258
+
259
+ | Name | Type |
260
+ | :--- | :------------------------------------------------ |
261
+ | ` it ` | ` AsyncGenerator ` <any, T\> \| ` Generator ` <any, T\> |
262
+
263
+ #### Returns
264
+
265
+ ` Promise ` <T\>
266
+
267
+ #### Defined in
268
+
269
+ [ packages/@ackee/antonio-core /src/modules/core/makeRequest.ts:8] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc/packages/@ackee/antonio-core/src/modules/core/makeRequest.ts#L8 )
270
+
271
+ ---
272
+
273
+ ### isAntonioError
274
+
275
+ ▸ ` Const ` ** isAntonioError** (` error ` ): error is AntonioError<unknown\>
276
+
277
+ #### Parameters
278
+
279
+ | Name | Type |
280
+ | :------ | :---- |
281
+ | ` error ` | ` any ` |
282
+
283
+ #### Returns
284
+
285
+ error is AntonioError<unknown\>
286
+
287
+ #### Defined in
288
+
289
+ [ packages/@ackee/antonio-core /src/modules/response/errors/index.ts:21] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc/packages/@ackee/antonio-core/src/modules/response/errors/index.ts#L21 )
290
+
291
+ ---
292
+
251
293
### runIterableStream
252
294
253
295
▸ ** runIterableStream** <T\> (` it ` , ` onProgress ` ): ` Generator ` <T \| Promise<IteratorResult<T, void\>\> , void, any\>
@@ -290,4 +332,4 @@ function* fetchPosts() {
290
332
291
333
#### Defined in
292
334
293
- [ packages/@ackee/antonio-core /src/modules/response/utils/runIterableStream.ts:24] ( https://github.com/AckeeCZ/antonio/blob/f5ba39d /packages/@ackee/antonio-core/src/modules/response/utils/runIterableStream.ts#L24 )
335
+ [ packages/@ackee/antonio-core /src/modules/response/utils/runIterableStream.ts:24] ( https://github.com/AckeeCZ/antonio/blob/17ef1cc /packages/@ackee/antonio-core/src/modules/response/utils/runIterableStream.ts#L24 )
0 commit comments