vigor-fetch 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +589 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -355,7 +355,7 @@ type VigorParseContextSchema<T extends VigorParseSchema<T>> = {
|
|
|
355
355
|
__brand: VigorBrand<"Parse", "Context<Schema">;
|
|
356
356
|
result: unknown | VigorDefaultType;
|
|
357
357
|
error: unknown;
|
|
358
|
-
response:
|
|
358
|
+
response: VigorParsePolicySchema<T>["target"];
|
|
359
359
|
flags: {
|
|
360
360
|
overrided: boolean;
|
|
361
361
|
restarted: boolean;
|
|
@@ -563,7 +563,7 @@ declare class VigorParsePolicyMiddlewares<T extends VigorParseSchema<T> = typeof
|
|
|
563
563
|
|
|
564
564
|
type VigorParsePolicySchema<T extends VigorParseSchema<T>> = {
|
|
565
565
|
__brand: VigorBrand<"Parse", "Policy<Schema">;
|
|
566
|
-
target: Response | VigorDefaultType;
|
|
566
|
+
target: Request | Response | VigorDefaultType;
|
|
567
567
|
settings: VigorParsePolicySettingsSchema<T>;
|
|
568
568
|
middlewares: VigorParsePolicyMiddlewaresSchema<T>;
|
|
569
569
|
strategies: VigorParsePolicyStrategiesSchema<T>;
|
|
@@ -691,6 +691,64 @@ declare class VigorParse<T extends VigorParseSchema<T> = typeof VigorParseBase>
|
|
|
691
691
|
target?: (symbol & {
|
|
692
692
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
693
693
|
}) | {
|
|
694
|
+
readonly cache?: RequestCache | undefined;
|
|
695
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
696
|
+
readonly destination?: RequestDestination | undefined;
|
|
697
|
+
readonly headers?: {
|
|
698
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
699
|
+
delete?: ((name: string) => void) | undefined;
|
|
700
|
+
get?: ((name: string) => string | null) | undefined;
|
|
701
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
702
|
+
has?: ((name: string) => boolean) | undefined;
|
|
703
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
704
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
705
|
+
} | undefined;
|
|
706
|
+
readonly integrity?: string | undefined;
|
|
707
|
+
readonly keepalive?: boolean | undefined;
|
|
708
|
+
readonly method?: string | undefined;
|
|
709
|
+
readonly mode?: RequestMode | undefined;
|
|
710
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
711
|
+
readonly referrer?: string | undefined;
|
|
712
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
713
|
+
readonly signal?: {
|
|
714
|
+
readonly aborted?: boolean | undefined;
|
|
715
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
716
|
+
readonly reason?: any;
|
|
717
|
+
throwIfAborted?: (() => void) | undefined;
|
|
718
|
+
addEventListener?: {
|
|
719
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
720
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
721
|
+
} | undefined;
|
|
722
|
+
removeEventListener?: {
|
|
723
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
724
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
725
|
+
} | undefined;
|
|
726
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
727
|
+
} | undefined;
|
|
728
|
+
readonly url?: string | undefined;
|
|
729
|
+
clone?: (() => Request) | undefined;
|
|
730
|
+
readonly body?: {
|
|
731
|
+
readonly locked?: boolean | undefined;
|
|
732
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
733
|
+
getReader?: {
|
|
734
|
+
(options: {
|
|
735
|
+
mode: "byob";
|
|
736
|
+
}): ReadableStreamBYOBReader;
|
|
737
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
738
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
739
|
+
} | undefined;
|
|
740
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
741
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
742
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
743
|
+
} | null | undefined;
|
|
744
|
+
readonly bodyUsed?: boolean | undefined;
|
|
745
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
746
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
747
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
748
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
749
|
+
json?: (() => Promise<any>) | undefined;
|
|
750
|
+
text?: (() => Promise<string>) | undefined;
|
|
751
|
+
} | {
|
|
694
752
|
readonly headers?: {
|
|
695
753
|
append?: ((name: string, value: string) => void) | undefined;
|
|
696
754
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -780,6 +838,64 @@ declare class VigorParse<T extends VigorParseSchema<T> = typeof VigorParseBase>
|
|
|
780
838
|
response?: (symbol & {
|
|
781
839
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
782
840
|
}) | {
|
|
841
|
+
readonly cache?: RequestCache | undefined;
|
|
842
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
843
|
+
readonly destination?: RequestDestination | undefined;
|
|
844
|
+
readonly headers?: {
|
|
845
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
846
|
+
delete?: ((name: string) => void) | undefined;
|
|
847
|
+
get?: ((name: string) => string | null) | undefined;
|
|
848
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
849
|
+
has?: ((name: string) => boolean) | undefined;
|
|
850
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
851
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
852
|
+
} | undefined;
|
|
853
|
+
readonly integrity?: string | undefined;
|
|
854
|
+
readonly keepalive?: boolean | undefined;
|
|
855
|
+
readonly method?: string | undefined;
|
|
856
|
+
readonly mode?: RequestMode | undefined;
|
|
857
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
858
|
+
readonly referrer?: string | undefined;
|
|
859
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
860
|
+
readonly signal?: {
|
|
861
|
+
readonly aborted?: boolean | undefined;
|
|
862
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
863
|
+
readonly reason?: any;
|
|
864
|
+
throwIfAborted?: (() => void) | undefined;
|
|
865
|
+
addEventListener?: {
|
|
866
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
867
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
868
|
+
} | undefined;
|
|
869
|
+
removeEventListener?: {
|
|
870
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
871
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
872
|
+
} | undefined;
|
|
873
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
874
|
+
} | undefined;
|
|
875
|
+
readonly url?: string | undefined;
|
|
876
|
+
clone?: (() => Request) | undefined;
|
|
877
|
+
readonly body?: {
|
|
878
|
+
readonly locked?: boolean | undefined;
|
|
879
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
880
|
+
getReader?: {
|
|
881
|
+
(options: {
|
|
882
|
+
mode: "byob";
|
|
883
|
+
}): ReadableStreamBYOBReader;
|
|
884
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
885
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
886
|
+
} | undefined;
|
|
887
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
888
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
889
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
890
|
+
} | null | undefined;
|
|
891
|
+
readonly bodyUsed?: boolean | undefined;
|
|
892
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
893
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
894
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
895
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
896
|
+
json?: (() => Promise<any>) | undefined;
|
|
897
|
+
text?: (() => Promise<string>) | undefined;
|
|
898
|
+
} | {
|
|
783
899
|
readonly headers?: {
|
|
784
900
|
append?: ((name: string, value: string) => void) | undefined;
|
|
785
901
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -836,6 +952,64 @@ declare class VigorParse<T extends VigorParseSchema<T> = typeof VigorParseBase>
|
|
|
836
952
|
target?: (symbol & {
|
|
837
953
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
838
954
|
}) | {
|
|
955
|
+
readonly cache?: RequestCache | undefined;
|
|
956
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
957
|
+
readonly destination?: RequestDestination | undefined;
|
|
958
|
+
readonly headers?: {
|
|
959
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
960
|
+
delete?: ((name: string) => void) | undefined;
|
|
961
|
+
get?: ((name: string) => string | null) | undefined;
|
|
962
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
963
|
+
has?: ((name: string) => boolean) | undefined;
|
|
964
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
965
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
966
|
+
} | undefined;
|
|
967
|
+
readonly integrity?: string | undefined;
|
|
968
|
+
readonly keepalive?: boolean | undefined;
|
|
969
|
+
readonly method?: string | undefined;
|
|
970
|
+
readonly mode?: RequestMode | undefined;
|
|
971
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
972
|
+
readonly referrer?: string | undefined;
|
|
973
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
974
|
+
readonly signal?: {
|
|
975
|
+
readonly aborted?: boolean | undefined;
|
|
976
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
977
|
+
readonly reason?: any;
|
|
978
|
+
throwIfAborted?: (() => void) | undefined;
|
|
979
|
+
addEventListener?: {
|
|
980
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
981
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
982
|
+
} | undefined;
|
|
983
|
+
removeEventListener?: {
|
|
984
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
985
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
986
|
+
} | undefined;
|
|
987
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
988
|
+
} | undefined;
|
|
989
|
+
readonly url?: string | undefined;
|
|
990
|
+
clone?: (() => Request) | undefined;
|
|
991
|
+
readonly body?: {
|
|
992
|
+
readonly locked?: boolean | undefined;
|
|
993
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
994
|
+
getReader?: {
|
|
995
|
+
(options: {
|
|
996
|
+
mode: "byob";
|
|
997
|
+
}): ReadableStreamBYOBReader;
|
|
998
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
999
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
1000
|
+
} | undefined;
|
|
1001
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
1002
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
1003
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
1004
|
+
} | null | undefined;
|
|
1005
|
+
readonly bodyUsed?: boolean | undefined;
|
|
1006
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
1007
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
1008
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
1009
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
1010
|
+
json?: (() => Promise<any>) | undefined;
|
|
1011
|
+
text?: (() => Promise<string>) | undefined;
|
|
1012
|
+
} | {
|
|
839
1013
|
readonly headers?: {
|
|
840
1014
|
append?: ((name: string, value: string) => void) | undefined;
|
|
841
1015
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -925,6 +1099,64 @@ declare class VigorParse<T extends VigorParseSchema<T> = typeof VigorParseBase>
|
|
|
925
1099
|
response?: (symbol & {
|
|
926
1100
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
927
1101
|
}) | {
|
|
1102
|
+
readonly cache?: RequestCache | undefined;
|
|
1103
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
1104
|
+
readonly destination?: RequestDestination | undefined;
|
|
1105
|
+
readonly headers?: {
|
|
1106
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
1107
|
+
delete?: ((name: string) => void) | undefined;
|
|
1108
|
+
get?: ((name: string) => string | null) | undefined;
|
|
1109
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
1110
|
+
has?: ((name: string) => boolean) | undefined;
|
|
1111
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
1112
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
1113
|
+
} | undefined;
|
|
1114
|
+
readonly integrity?: string | undefined;
|
|
1115
|
+
readonly keepalive?: boolean | undefined;
|
|
1116
|
+
readonly method?: string | undefined;
|
|
1117
|
+
readonly mode?: RequestMode | undefined;
|
|
1118
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
1119
|
+
readonly referrer?: string | undefined;
|
|
1120
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
1121
|
+
readonly signal?: {
|
|
1122
|
+
readonly aborted?: boolean | undefined;
|
|
1123
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
1124
|
+
readonly reason?: any;
|
|
1125
|
+
throwIfAborted?: (() => void) | undefined;
|
|
1126
|
+
addEventListener?: {
|
|
1127
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1128
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1129
|
+
} | undefined;
|
|
1130
|
+
removeEventListener?: {
|
|
1131
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1132
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1133
|
+
} | undefined;
|
|
1134
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
1135
|
+
} | undefined;
|
|
1136
|
+
readonly url?: string | undefined;
|
|
1137
|
+
clone?: (() => Request) | undefined;
|
|
1138
|
+
readonly body?: {
|
|
1139
|
+
readonly locked?: boolean | undefined;
|
|
1140
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
1141
|
+
getReader?: {
|
|
1142
|
+
(options: {
|
|
1143
|
+
mode: "byob";
|
|
1144
|
+
}): ReadableStreamBYOBReader;
|
|
1145
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
1146
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
1149
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
1150
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
1151
|
+
} | null | undefined;
|
|
1152
|
+
readonly bodyUsed?: boolean | undefined;
|
|
1153
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
1154
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
1155
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
1156
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
1157
|
+
json?: (() => Promise<any>) | undefined;
|
|
1158
|
+
text?: (() => Promise<string>) | undefined;
|
|
1159
|
+
} | {
|
|
928
1160
|
readonly headers?: {
|
|
929
1161
|
append?: ((name: string, value: string) => void) | undefined;
|
|
930
1162
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -981,6 +1213,64 @@ declare class VigorParse<T extends VigorParseSchema<T> = typeof VigorParseBase>
|
|
|
981
1213
|
target?: (symbol & {
|
|
982
1214
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
983
1215
|
}) | {
|
|
1216
|
+
readonly cache?: RequestCache | undefined;
|
|
1217
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
1218
|
+
readonly destination?: RequestDestination | undefined;
|
|
1219
|
+
readonly headers?: {
|
|
1220
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
1221
|
+
delete?: ((name: string) => void) | undefined;
|
|
1222
|
+
get?: ((name: string) => string | null) | undefined;
|
|
1223
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
1224
|
+
has?: ((name: string) => boolean) | undefined;
|
|
1225
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
1226
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
1227
|
+
} | undefined;
|
|
1228
|
+
readonly integrity?: string | undefined;
|
|
1229
|
+
readonly keepalive?: boolean | undefined;
|
|
1230
|
+
readonly method?: string | undefined;
|
|
1231
|
+
readonly mode?: RequestMode | undefined;
|
|
1232
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
1233
|
+
readonly referrer?: string | undefined;
|
|
1234
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
1235
|
+
readonly signal?: {
|
|
1236
|
+
readonly aborted?: boolean | undefined;
|
|
1237
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
1238
|
+
readonly reason?: any;
|
|
1239
|
+
throwIfAborted?: (() => void) | undefined;
|
|
1240
|
+
addEventListener?: {
|
|
1241
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1242
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1243
|
+
} | undefined;
|
|
1244
|
+
removeEventListener?: {
|
|
1245
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1246
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1247
|
+
} | undefined;
|
|
1248
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
1249
|
+
} | undefined;
|
|
1250
|
+
readonly url?: string | undefined;
|
|
1251
|
+
clone?: (() => Request) | undefined;
|
|
1252
|
+
readonly body?: {
|
|
1253
|
+
readonly locked?: boolean | undefined;
|
|
1254
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
1255
|
+
getReader?: {
|
|
1256
|
+
(options: {
|
|
1257
|
+
mode: "byob";
|
|
1258
|
+
}): ReadableStreamBYOBReader;
|
|
1259
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
1260
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
1261
|
+
} | undefined;
|
|
1262
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
1263
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
1264
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
1265
|
+
} | null | undefined;
|
|
1266
|
+
readonly bodyUsed?: boolean | undefined;
|
|
1267
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
1268
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
1269
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
1270
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
1271
|
+
json?: (() => Promise<any>) | undefined;
|
|
1272
|
+
text?: (() => Promise<string>) | undefined;
|
|
1273
|
+
} | {
|
|
984
1274
|
readonly headers?: {
|
|
985
1275
|
append?: ((name: string, value: string) => void) | undefined;
|
|
986
1276
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -1070,6 +1360,64 @@ declare class VigorParse<T extends VigorParseSchema<T> = typeof VigorParseBase>
|
|
|
1070
1360
|
response?: (symbol & {
|
|
1071
1361
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
1072
1362
|
}) | {
|
|
1363
|
+
readonly cache?: RequestCache | undefined;
|
|
1364
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
1365
|
+
readonly destination?: RequestDestination | undefined;
|
|
1366
|
+
readonly headers?: {
|
|
1367
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
1368
|
+
delete?: ((name: string) => void) | undefined;
|
|
1369
|
+
get?: ((name: string) => string | null) | undefined;
|
|
1370
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
1371
|
+
has?: ((name: string) => boolean) | undefined;
|
|
1372
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
1373
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
1374
|
+
} | undefined;
|
|
1375
|
+
readonly integrity?: string | undefined;
|
|
1376
|
+
readonly keepalive?: boolean | undefined;
|
|
1377
|
+
readonly method?: string | undefined;
|
|
1378
|
+
readonly mode?: RequestMode | undefined;
|
|
1379
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
1380
|
+
readonly referrer?: string | undefined;
|
|
1381
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
1382
|
+
readonly signal?: {
|
|
1383
|
+
readonly aborted?: boolean | undefined;
|
|
1384
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
1385
|
+
readonly reason?: any;
|
|
1386
|
+
throwIfAborted?: (() => void) | undefined;
|
|
1387
|
+
addEventListener?: {
|
|
1388
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1389
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1390
|
+
} | undefined;
|
|
1391
|
+
removeEventListener?: {
|
|
1392
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1393
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1394
|
+
} | undefined;
|
|
1395
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
1396
|
+
} | undefined;
|
|
1397
|
+
readonly url?: string | undefined;
|
|
1398
|
+
clone?: (() => Request) | undefined;
|
|
1399
|
+
readonly body?: {
|
|
1400
|
+
readonly locked?: boolean | undefined;
|
|
1401
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
1402
|
+
getReader?: {
|
|
1403
|
+
(options: {
|
|
1404
|
+
mode: "byob";
|
|
1405
|
+
}): ReadableStreamBYOBReader;
|
|
1406
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
1407
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
1408
|
+
} | undefined;
|
|
1409
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
1410
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
1411
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
1412
|
+
} | null | undefined;
|
|
1413
|
+
readonly bodyUsed?: boolean | undefined;
|
|
1414
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
1415
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
1416
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
1417
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
1418
|
+
json?: (() => Promise<any>) | undefined;
|
|
1419
|
+
text?: (() => Promise<string>) | undefined;
|
|
1420
|
+
} | {
|
|
1073
1421
|
readonly headers?: {
|
|
1074
1422
|
append?: ((name: string, value: string) => void) | undefined;
|
|
1075
1423
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -3345,10 +3693,10 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
3345
3693
|
integrity?: string | undefined;
|
|
3346
3694
|
keepalive?: boolean | undefined;
|
|
3347
3695
|
mode?: RequestMode | undefined;
|
|
3348
|
-
priority?: RequestPriority | undefined;
|
|
3349
3696
|
redirect?: RequestRedirect | undefined;
|
|
3350
3697
|
referrer?: string | undefined;
|
|
3351
3698
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
3699
|
+
priority?: RequestPriority | undefined;
|
|
3352
3700
|
window?: null | undefined;
|
|
3353
3701
|
} | undefined;
|
|
3354
3702
|
settings?: {
|
|
@@ -3535,6 +3883,64 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
3535
3883
|
target?: (symbol & {
|
|
3536
3884
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
3537
3885
|
}) | {
|
|
3886
|
+
readonly cache?: RequestCache | undefined;
|
|
3887
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
3888
|
+
readonly destination?: RequestDestination | undefined;
|
|
3889
|
+
readonly headers?: {
|
|
3890
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
3891
|
+
delete?: ((name: string) => void) | undefined;
|
|
3892
|
+
get?: ((name: string) => string | null) | undefined;
|
|
3893
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
3894
|
+
has?: ((name: string) => boolean) | undefined;
|
|
3895
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
3896
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
3897
|
+
} | undefined;
|
|
3898
|
+
readonly integrity?: string | undefined;
|
|
3899
|
+
readonly keepalive?: boolean | undefined;
|
|
3900
|
+
readonly method?: string | undefined;
|
|
3901
|
+
readonly mode?: RequestMode | undefined;
|
|
3902
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
3903
|
+
readonly referrer?: string | undefined;
|
|
3904
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
3905
|
+
readonly signal?: {
|
|
3906
|
+
readonly aborted?: boolean | undefined;
|
|
3907
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
3908
|
+
readonly reason?: any;
|
|
3909
|
+
throwIfAborted?: (() => void) | undefined;
|
|
3910
|
+
addEventListener?: {
|
|
3911
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3912
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3913
|
+
} | undefined;
|
|
3914
|
+
removeEventListener?: {
|
|
3915
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3916
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3917
|
+
} | undefined;
|
|
3918
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
3919
|
+
} | undefined;
|
|
3920
|
+
readonly url?: string | undefined;
|
|
3921
|
+
clone?: (() => Request) | undefined;
|
|
3922
|
+
readonly body?: {
|
|
3923
|
+
readonly locked?: boolean | undefined;
|
|
3924
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
3925
|
+
getReader?: {
|
|
3926
|
+
(options: {
|
|
3927
|
+
mode: "byob";
|
|
3928
|
+
}): ReadableStreamBYOBReader;
|
|
3929
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
3930
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
3931
|
+
} | undefined;
|
|
3932
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
3933
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
3934
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
3935
|
+
} | null | undefined;
|
|
3936
|
+
readonly bodyUsed?: boolean | undefined;
|
|
3937
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
3938
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
3939
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
3940
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
3941
|
+
json?: (() => Promise<any>) | undefined;
|
|
3942
|
+
text?: (() => Promise<string>) | undefined;
|
|
3943
|
+
} | {
|
|
3538
3944
|
readonly headers?: {
|
|
3539
3945
|
append?: ((name: string, value: string) => void) | undefined;
|
|
3540
3946
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -3624,6 +4030,64 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
3624
4030
|
response?: (symbol & {
|
|
3625
4031
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
3626
4032
|
}) | {
|
|
4033
|
+
readonly cache?: RequestCache | undefined;
|
|
4034
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
4035
|
+
readonly destination?: RequestDestination | undefined;
|
|
4036
|
+
readonly headers?: {
|
|
4037
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
4038
|
+
delete?: ((name: string) => void) | undefined;
|
|
4039
|
+
get?: ((name: string) => string | null) | undefined;
|
|
4040
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
4041
|
+
has?: ((name: string) => boolean) | undefined;
|
|
4042
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
4043
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
4044
|
+
} | undefined;
|
|
4045
|
+
readonly integrity?: string | undefined;
|
|
4046
|
+
readonly keepalive?: boolean | undefined;
|
|
4047
|
+
readonly method?: string | undefined;
|
|
4048
|
+
readonly mode?: RequestMode | undefined;
|
|
4049
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
4050
|
+
readonly referrer?: string | undefined;
|
|
4051
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
4052
|
+
readonly signal?: {
|
|
4053
|
+
readonly aborted?: boolean | undefined;
|
|
4054
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
4055
|
+
readonly reason?: any;
|
|
4056
|
+
throwIfAborted?: (() => void) | undefined;
|
|
4057
|
+
addEventListener?: {
|
|
4058
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4059
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4060
|
+
} | undefined;
|
|
4061
|
+
removeEventListener?: {
|
|
4062
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4063
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4064
|
+
} | undefined;
|
|
4065
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
4066
|
+
} | undefined;
|
|
4067
|
+
readonly url?: string | undefined;
|
|
4068
|
+
clone?: (() => Request) | undefined;
|
|
4069
|
+
readonly body?: {
|
|
4070
|
+
readonly locked?: boolean | undefined;
|
|
4071
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4072
|
+
getReader?: {
|
|
4073
|
+
(options: {
|
|
4074
|
+
mode: "byob";
|
|
4075
|
+
}): ReadableStreamBYOBReader;
|
|
4076
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
4077
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
4078
|
+
} | undefined;
|
|
4079
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4080
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4081
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
4082
|
+
} | null | undefined;
|
|
4083
|
+
readonly bodyUsed?: boolean | undefined;
|
|
4084
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4085
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
4086
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4087
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
4088
|
+
json?: (() => Promise<any>) | undefined;
|
|
4089
|
+
text?: (() => Promise<string>) | undefined;
|
|
4090
|
+
} | {
|
|
3627
4091
|
readonly headers?: {
|
|
3628
4092
|
append?: ((name: string, value: string) => void) | undefined;
|
|
3629
4093
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -3727,10 +4191,10 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
3727
4191
|
integrity?: string | undefined;
|
|
3728
4192
|
keepalive?: boolean | undefined;
|
|
3729
4193
|
mode?: RequestMode | undefined;
|
|
3730
|
-
priority?: RequestPriority | undefined;
|
|
3731
4194
|
redirect?: RequestRedirect | undefined;
|
|
3732
4195
|
referrer?: string | undefined;
|
|
3733
4196
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4197
|
+
priority?: RequestPriority | undefined;
|
|
3734
4198
|
window?: null | undefined;
|
|
3735
4199
|
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | "CONNECT" | "TRACE" | undefined;
|
|
3736
4200
|
headers?: {
|
|
@@ -3933,10 +4397,10 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
3933
4397
|
integrity?: string | undefined;
|
|
3934
4398
|
keepalive?: boolean | undefined;
|
|
3935
4399
|
mode?: RequestMode | undefined;
|
|
3936
|
-
priority?: RequestPriority | undefined;
|
|
3937
4400
|
redirect?: RequestRedirect | undefined;
|
|
3938
4401
|
referrer?: string | undefined;
|
|
3939
4402
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4403
|
+
priority?: RequestPriority | undefined;
|
|
3940
4404
|
window?: null | undefined;
|
|
3941
4405
|
} | undefined;
|
|
3942
4406
|
settings?: {
|
|
@@ -4123,6 +4587,64 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
4123
4587
|
target?: (symbol & {
|
|
4124
4588
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4125
4589
|
}) | {
|
|
4590
|
+
readonly cache?: RequestCache | undefined;
|
|
4591
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
4592
|
+
readonly destination?: RequestDestination | undefined;
|
|
4593
|
+
readonly headers?: {
|
|
4594
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
4595
|
+
delete?: ((name: string) => void) | undefined;
|
|
4596
|
+
get?: ((name: string) => string | null) | undefined;
|
|
4597
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
4598
|
+
has?: ((name: string) => boolean) | undefined;
|
|
4599
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
4600
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
4601
|
+
} | undefined;
|
|
4602
|
+
readonly integrity?: string | undefined;
|
|
4603
|
+
readonly keepalive?: boolean | undefined;
|
|
4604
|
+
readonly method?: string | undefined;
|
|
4605
|
+
readonly mode?: RequestMode | undefined;
|
|
4606
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
4607
|
+
readonly referrer?: string | undefined;
|
|
4608
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
4609
|
+
readonly signal?: {
|
|
4610
|
+
readonly aborted?: boolean | undefined;
|
|
4611
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
4612
|
+
readonly reason?: any;
|
|
4613
|
+
throwIfAborted?: (() => void) | undefined;
|
|
4614
|
+
addEventListener?: {
|
|
4615
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4616
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4617
|
+
} | undefined;
|
|
4618
|
+
removeEventListener?: {
|
|
4619
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4620
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4621
|
+
} | undefined;
|
|
4622
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
4623
|
+
} | undefined;
|
|
4624
|
+
readonly url?: string | undefined;
|
|
4625
|
+
clone?: (() => Request) | undefined;
|
|
4626
|
+
readonly body?: {
|
|
4627
|
+
readonly locked?: boolean | undefined;
|
|
4628
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4629
|
+
getReader?: {
|
|
4630
|
+
(options: {
|
|
4631
|
+
mode: "byob";
|
|
4632
|
+
}): ReadableStreamBYOBReader;
|
|
4633
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
4634
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
4635
|
+
} | undefined;
|
|
4636
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4637
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4638
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
4639
|
+
} | null | undefined;
|
|
4640
|
+
readonly bodyUsed?: boolean | undefined;
|
|
4641
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4642
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
4643
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4644
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
4645
|
+
json?: (() => Promise<any>) | undefined;
|
|
4646
|
+
text?: (() => Promise<string>) | undefined;
|
|
4647
|
+
} | {
|
|
4126
4648
|
readonly headers?: {
|
|
4127
4649
|
append?: ((name: string, value: string) => void) | undefined;
|
|
4128
4650
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -4212,6 +4734,64 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
4212
4734
|
response?: (symbol & {
|
|
4213
4735
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4214
4736
|
}) | {
|
|
4737
|
+
readonly cache?: RequestCache | undefined;
|
|
4738
|
+
readonly credentials?: RequestCredentials | undefined;
|
|
4739
|
+
readonly destination?: RequestDestination | undefined;
|
|
4740
|
+
readonly headers?: {
|
|
4741
|
+
append?: ((name: string, value: string) => void) | undefined;
|
|
4742
|
+
delete?: ((name: string) => void) | undefined;
|
|
4743
|
+
get?: ((name: string) => string | null) | undefined;
|
|
4744
|
+
getSetCookie?: (() => string[]) | undefined;
|
|
4745
|
+
has?: ((name: string) => boolean) | undefined;
|
|
4746
|
+
set?: ((name: string, value: string) => void) | undefined;
|
|
4747
|
+
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
4748
|
+
} | undefined;
|
|
4749
|
+
readonly integrity?: string | undefined;
|
|
4750
|
+
readonly keepalive?: boolean | undefined;
|
|
4751
|
+
readonly method?: string | undefined;
|
|
4752
|
+
readonly mode?: RequestMode | undefined;
|
|
4753
|
+
readonly redirect?: RequestRedirect | undefined;
|
|
4754
|
+
readonly referrer?: string | undefined;
|
|
4755
|
+
readonly referrerPolicy?: ReferrerPolicy | undefined;
|
|
4756
|
+
readonly signal?: {
|
|
4757
|
+
readonly aborted?: boolean | undefined;
|
|
4758
|
+
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
4759
|
+
readonly reason?: any;
|
|
4760
|
+
throwIfAborted?: (() => void) | undefined;
|
|
4761
|
+
addEventListener?: {
|
|
4762
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4763
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4764
|
+
} | undefined;
|
|
4765
|
+
removeEventListener?: {
|
|
4766
|
+
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4767
|
+
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4768
|
+
} | undefined;
|
|
4769
|
+
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
4770
|
+
} | undefined;
|
|
4771
|
+
readonly url?: string | undefined;
|
|
4772
|
+
clone?: (() => Request) | undefined;
|
|
4773
|
+
readonly body?: {
|
|
4774
|
+
readonly locked?: boolean | undefined;
|
|
4775
|
+
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4776
|
+
getReader?: {
|
|
4777
|
+
(options: {
|
|
4778
|
+
mode: "byob";
|
|
4779
|
+
}): ReadableStreamBYOBReader;
|
|
4780
|
+
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
4781
|
+
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
4782
|
+
} | undefined;
|
|
4783
|
+
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4784
|
+
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4785
|
+
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
4786
|
+
} | null | undefined;
|
|
4787
|
+
readonly bodyUsed?: boolean | undefined;
|
|
4788
|
+
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4789
|
+
blob?: (() => Promise<Blob>) | undefined;
|
|
4790
|
+
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4791
|
+
formData?: (() => Promise<FormData>) | undefined;
|
|
4792
|
+
json?: (() => Promise<any>) | undefined;
|
|
4793
|
+
text?: (() => Promise<string>) | undefined;
|
|
4794
|
+
} | {
|
|
4215
4795
|
readonly headers?: {
|
|
4216
4796
|
append?: ((name: string, value: string) => void) | undefined;
|
|
4217
4797
|
delete?: ((name: string) => void) | undefined;
|
|
@@ -4315,10 +4895,10 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
4315
4895
|
integrity?: string | undefined;
|
|
4316
4896
|
keepalive?: boolean | undefined;
|
|
4317
4897
|
mode?: RequestMode | undefined;
|
|
4318
|
-
priority?: RequestPriority | undefined;
|
|
4319
4898
|
redirect?: RequestRedirect | undefined;
|
|
4320
4899
|
referrer?: string | undefined;
|
|
4321
4900
|
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4901
|
+
priority?: RequestPriority | undefined;
|
|
4322
4902
|
window?: null | undefined;
|
|
4323
4903
|
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | "CONNECT" | "TRACE" | undefined;
|
|
4324
4904
|
headers?: {
|
|
@@ -4770,7 +5350,7 @@ declare const vigor: {
|
|
|
4770
5350
|
policy: {
|
|
4771
5351
|
target: (symbol & {
|
|
4772
5352
|
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4773
|
-
}) | Response;
|
|
5353
|
+
}) | Request | Response;
|
|
4774
5354
|
middlewares: {
|
|
4775
5355
|
readonly __brand: VigorBrand<"Parse", "Policy<Middlewares<Schema">;
|
|
4776
5356
|
readonly before: [];
|
|
@@ -5434,10 +6014,10 @@ declare const vigor: {
|
|
|
5434
6014
|
};
|
|
5435
6015
|
};
|
|
5436
6016
|
headers: {};
|
|
5437
|
-
|
|
6017
|
+
method: symbol & {
|
|
5438
6018
|
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
5439
6019
|
};
|
|
5440
|
-
|
|
6020
|
+
body: symbol & {
|
|
5441
6021
|
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
5442
6022
|
};
|
|
5443
6023
|
origin: string;
|