vigor-fetch 4.0.2 → 4.0.4
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 +31 -2498
- package/dist/index.js +36 -14
- package/dist/index.mjs +36 -14
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -220,61 +220,15 @@ declare class VigorAll<T extends VigorAllSchema<T> = typeof VigorAllBase> extend
|
|
|
220
220
|
}>>>;
|
|
221
221
|
/** Configures the all-policy's general settings (concurrency, onlySuccess). */
|
|
222
222
|
settings<const N extends VigorDeepPartial<VigorAllPolicySettingsSchema<T>>, R extends VigorAllSchema<any>>(input: N | ((s: VigorAllPolicySettings<T>) => VigorAllPolicySettings<R>) | VigorAllPolicySettings<R>): VigorAll<VigorAllIn<VigorDeepMerge<T, {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
target?: readonly VigorAllTask[] | undefined;
|
|
227
|
-
settings?: {
|
|
228
|
-
__brand?: VigorBrand<"All", "Policy<Settings<Schema"> | undefined;
|
|
229
|
-
concurrency?: number | undefined;
|
|
230
|
-
onlySuccess?: boolean | undefined;
|
|
231
|
-
} | undefined;
|
|
232
|
-
middlewares?: {
|
|
233
|
-
__brand?: VigorBrand<"All", "Policy<Middlewares<Schema"> | undefined;
|
|
234
|
-
before?: readonly VigorAllEachMiddlewareFn[] | undefined;
|
|
235
|
-
after?: readonly VigorAllEachMiddlewareFn[] | undefined;
|
|
236
|
-
onError?: readonly VigorAllEachOnErrorFn[] | undefined;
|
|
237
|
-
} | undefined;
|
|
238
|
-
} | undefined;
|
|
239
|
-
context?: {
|
|
240
|
-
__brand?: VigorBrand<"All", "Context<Schema"> | undefined;
|
|
241
|
-
result?: (symbol & {
|
|
242
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
243
|
-
}) | readonly unknown[] | undefined;
|
|
244
|
-
policy?: any;
|
|
245
|
-
record?: {
|
|
246
|
-
[x: string]: any;
|
|
247
|
-
} | undefined;
|
|
248
|
-
} | undefined;
|
|
223
|
+
readonly policy: {
|
|
224
|
+
readonly settings: VigorAllPolicySettingsSchema<any>;
|
|
225
|
+
};
|
|
249
226
|
}>>>;
|
|
250
227
|
/** Configures the all-policy's per-task middleware pipeline. */
|
|
251
228
|
middlewares<const N extends VigorDeepPartial<VigorAllPolicyMiddlewaresSchema<T>>, R extends VigorAllSchema<any>>(input: N | ((s: VigorAllPolicyMiddlewares<T>) => VigorAllPolicyMiddlewares<R>) | VigorAllPolicyMiddlewares<R>): VigorAll<VigorAllIn<VigorDeepMerge<T, {
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
target?: readonly VigorAllTask[] | undefined;
|
|
256
|
-
settings?: {
|
|
257
|
-
__brand?: VigorBrand<"All", "Policy<Settings<Schema"> | undefined;
|
|
258
|
-
concurrency?: number | undefined;
|
|
259
|
-
onlySuccess?: boolean | undefined;
|
|
260
|
-
} | undefined;
|
|
261
|
-
middlewares?: {
|
|
262
|
-
__brand?: VigorBrand<"All", "Policy<Middlewares<Schema"> | undefined;
|
|
263
|
-
before?: readonly VigorAllEachMiddlewareFn[] | undefined;
|
|
264
|
-
after?: readonly VigorAllEachMiddlewareFn[] | undefined;
|
|
265
|
-
onError?: readonly VigorAllEachOnErrorFn[] | undefined;
|
|
266
|
-
} | undefined;
|
|
267
|
-
} | undefined;
|
|
268
|
-
context?: {
|
|
269
|
-
__brand?: VigorBrand<"All", "Context<Schema"> | undefined;
|
|
270
|
-
result?: (symbol & {
|
|
271
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
272
|
-
}) | readonly unknown[] | undefined;
|
|
273
|
-
policy?: any;
|
|
274
|
-
record?: {
|
|
275
|
-
[x: string]: any;
|
|
276
|
-
} | undefined;
|
|
277
|
-
} | undefined;
|
|
229
|
+
readonly policy: {
|
|
230
|
+
readonly middlewares: VigorAllPolicyMiddlewaresSchema<any>;
|
|
231
|
+
};
|
|
278
232
|
}>>>;
|
|
279
233
|
/** Runs a single task through the before/after/onError middleware pipeline. */
|
|
280
234
|
private _runTask;
|
|
@@ -685,786 +639,21 @@ declare class VigorParse<T extends VigorParseSchema<T> = typeof VigorParseBase>
|
|
|
685
639
|
}>>>;
|
|
686
640
|
/** Configures the parse policy's general settings. */
|
|
687
641
|
settings<const N extends VigorDeepPartial<VigorParsePolicySettingsSchema<T>>, R extends VigorParseSchema<any>>(input: N | ((s: VigorParsePolicySettings<T>) => VigorParsePolicySettings<R>) | VigorParsePolicySettings<R>): VigorParse<VigorParseIn<VigorDeepMerge<T, {
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
target?: (symbol & {
|
|
692
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
752
|
-
readonly headers?: {
|
|
753
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
754
|
-
delete?: ((name: string) => void) | undefined;
|
|
755
|
-
get?: ((name: string) => string | null) | undefined;
|
|
756
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
757
|
-
has?: ((name: string) => boolean) | undefined;
|
|
758
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
759
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
760
|
-
} | undefined;
|
|
761
|
-
readonly ok?: boolean | undefined;
|
|
762
|
-
readonly redirected?: boolean | undefined;
|
|
763
|
-
readonly status?: number | undefined;
|
|
764
|
-
readonly statusText?: string | undefined;
|
|
765
|
-
readonly type?: ResponseType | undefined;
|
|
766
|
-
readonly url?: string | undefined;
|
|
767
|
-
clone?: (() => Response) | undefined;
|
|
768
|
-
readonly body?: {
|
|
769
|
-
readonly locked?: boolean | undefined;
|
|
770
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
771
|
-
getReader?: {
|
|
772
|
-
(options: {
|
|
773
|
-
mode: "byob";
|
|
774
|
-
}): ReadableStreamBYOBReader;
|
|
775
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
776
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
777
|
-
} | undefined;
|
|
778
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
779
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
780
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
781
|
-
} | null | undefined;
|
|
782
|
-
readonly bodyUsed?: boolean | undefined;
|
|
783
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
784
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
785
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
786
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
787
|
-
json?: (() => Promise<any>) | undefined;
|
|
788
|
-
text?: (() => Promise<string>) | undefined;
|
|
789
|
-
} | undefined;
|
|
790
|
-
settings?: {
|
|
791
|
-
__brand?: VigorBrand<"Parse", "Policy<Settings<Schema"> | undefined;
|
|
792
|
-
raw?: boolean | undefined;
|
|
793
|
-
default?: (symbol & {
|
|
794
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
795
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
796
|
-
maxRestarts?: number | undefined;
|
|
797
|
-
} | undefined;
|
|
798
|
-
middlewares?: {
|
|
799
|
-
__brand?: VigorBrand<"Parse", "Policy<Middlewares<Schema"> | undefined;
|
|
800
|
-
before?: readonly ({
|
|
801
|
-
_mode?: "fluent" | undefined;
|
|
802
|
-
func?: ((ctx: any) => void) | undefined;
|
|
803
|
-
} | {
|
|
804
|
-
_mode?: "intercept" | undefined;
|
|
805
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
806
|
-
})[] | undefined;
|
|
807
|
-
after?: readonly ({
|
|
808
|
-
_mode?: "fluent" | undefined;
|
|
809
|
-
func?: ((ctx: any) => void) | undefined;
|
|
810
|
-
} | {
|
|
811
|
-
_mode?: "intercept" | undefined;
|
|
812
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
813
|
-
})[] | undefined;
|
|
814
|
-
onResult?: readonly ({
|
|
815
|
-
_mode?: "fluent" | undefined;
|
|
816
|
-
func?: ((res: any) => VigorParseSchema<any>["context"]["result"]) | undefined;
|
|
817
|
-
} | {
|
|
818
|
-
_mode?: "intercept" | undefined;
|
|
819
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
820
|
-
})[] | undefined;
|
|
821
|
-
onError?: readonly ({
|
|
822
|
-
_mode?: "fluent" | undefined;
|
|
823
|
-
func?: ((err: any) => void) | undefined;
|
|
824
|
-
} | {
|
|
825
|
-
_mode?: "intercept" | undefined;
|
|
826
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
827
|
-
})[] | undefined;
|
|
828
|
-
} | undefined;
|
|
829
|
-
strategies?: {
|
|
830
|
-
__brand?: VigorBrand<"Parse", "Policy<Strategies<Schema"> | undefined;
|
|
831
|
-
funcs?: readonly VigorParseStrategyFunc[] | undefined;
|
|
832
|
-
} | undefined;
|
|
833
|
-
} | undefined;
|
|
834
|
-
context?: {
|
|
835
|
-
__brand?: VigorBrand<"Parse", "Context<Schema"> | undefined;
|
|
836
|
-
result?: unknown | VigorDefaultType;
|
|
837
|
-
error?: unknown;
|
|
838
|
-
response?: (symbol & {
|
|
839
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
899
|
-
readonly headers?: {
|
|
900
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
901
|
-
delete?: ((name: string) => void) | undefined;
|
|
902
|
-
get?: ((name: string) => string | null) | undefined;
|
|
903
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
904
|
-
has?: ((name: string) => boolean) | undefined;
|
|
905
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
906
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
907
|
-
} | undefined;
|
|
908
|
-
readonly ok?: boolean | undefined;
|
|
909
|
-
readonly redirected?: boolean | undefined;
|
|
910
|
-
readonly status?: number | undefined;
|
|
911
|
-
readonly statusText?: string | undefined;
|
|
912
|
-
readonly type?: ResponseType | undefined;
|
|
913
|
-
readonly url?: string | undefined;
|
|
914
|
-
clone?: (() => Response) | undefined;
|
|
915
|
-
readonly body?: {
|
|
916
|
-
readonly locked?: boolean | undefined;
|
|
917
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
918
|
-
getReader?: {
|
|
919
|
-
(options: {
|
|
920
|
-
mode: "byob";
|
|
921
|
-
}): ReadableStreamBYOBReader;
|
|
922
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
923
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
924
|
-
} | undefined;
|
|
925
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
926
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
927
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
928
|
-
} | null | undefined;
|
|
929
|
-
readonly bodyUsed?: boolean | undefined;
|
|
930
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
931
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
932
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
933
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
934
|
-
json?: (() => Promise<any>) | undefined;
|
|
935
|
-
text?: (() => Promise<string>) | undefined;
|
|
936
|
-
} | undefined;
|
|
937
|
-
flags?: {
|
|
938
|
-
overrided?: boolean | undefined;
|
|
939
|
-
restarted?: boolean | undefined;
|
|
940
|
-
} | undefined;
|
|
941
|
-
record?: {
|
|
942
|
-
[x: string]: any;
|
|
943
|
-
} | undefined;
|
|
944
|
-
policy?: any;
|
|
945
|
-
} | undefined;
|
|
642
|
+
readonly policy: {
|
|
643
|
+
readonly settings: VigorParsePolicySettingsSchema<any>;
|
|
644
|
+
};
|
|
946
645
|
}>>>;
|
|
947
646
|
/** Configures the parse policy's middleware pipeline. */
|
|
948
647
|
middlewares<const N extends VigorDeepPartial<VigorParsePolicyMiddlewaresSchema<T>>, R extends VigorParseSchema<any>>(input: N | ((s: VigorParsePolicyMiddlewares<T>) => VigorParsePolicyMiddlewares<R>) | VigorParsePolicyMiddlewares<R>): VigorParse<VigorParseIn<VigorDeepMerge<T, {
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
target?: (symbol & {
|
|
953
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
1013
|
-
readonly headers?: {
|
|
1014
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
1015
|
-
delete?: ((name: string) => void) | undefined;
|
|
1016
|
-
get?: ((name: string) => string | null) | undefined;
|
|
1017
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
1018
|
-
has?: ((name: string) => boolean) | undefined;
|
|
1019
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
1020
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
1021
|
-
} | undefined;
|
|
1022
|
-
readonly ok?: boolean | undefined;
|
|
1023
|
-
readonly redirected?: boolean | undefined;
|
|
1024
|
-
readonly status?: number | undefined;
|
|
1025
|
-
readonly statusText?: string | undefined;
|
|
1026
|
-
readonly type?: ResponseType | undefined;
|
|
1027
|
-
readonly url?: string | undefined;
|
|
1028
|
-
clone?: (() => Response) | undefined;
|
|
1029
|
-
readonly body?: {
|
|
1030
|
-
readonly locked?: boolean | undefined;
|
|
1031
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
1032
|
-
getReader?: {
|
|
1033
|
-
(options: {
|
|
1034
|
-
mode: "byob";
|
|
1035
|
-
}): ReadableStreamBYOBReader;
|
|
1036
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
1037
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
1038
|
-
} | undefined;
|
|
1039
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
1040
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
1041
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
1042
|
-
} | null | undefined;
|
|
1043
|
-
readonly bodyUsed?: boolean | undefined;
|
|
1044
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
1045
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
1046
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
1047
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
1048
|
-
json?: (() => Promise<any>) | undefined;
|
|
1049
|
-
text?: (() => Promise<string>) | undefined;
|
|
1050
|
-
} | undefined;
|
|
1051
|
-
settings?: {
|
|
1052
|
-
__brand?: VigorBrand<"Parse", "Policy<Settings<Schema"> | undefined;
|
|
1053
|
-
raw?: boolean | undefined;
|
|
1054
|
-
default?: (symbol & {
|
|
1055
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
1056
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
1057
|
-
maxRestarts?: number | undefined;
|
|
1058
|
-
} | undefined;
|
|
1059
|
-
middlewares?: {
|
|
1060
|
-
__brand?: VigorBrand<"Parse", "Policy<Middlewares<Schema"> | undefined;
|
|
1061
|
-
before?: readonly ({
|
|
1062
|
-
_mode?: "fluent" | undefined;
|
|
1063
|
-
func?: ((ctx: any) => void) | undefined;
|
|
1064
|
-
} | {
|
|
1065
|
-
_mode?: "intercept" | undefined;
|
|
1066
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
1067
|
-
})[] | undefined;
|
|
1068
|
-
after?: readonly ({
|
|
1069
|
-
_mode?: "fluent" | undefined;
|
|
1070
|
-
func?: ((ctx: any) => void) | undefined;
|
|
1071
|
-
} | {
|
|
1072
|
-
_mode?: "intercept" | undefined;
|
|
1073
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
1074
|
-
})[] | undefined;
|
|
1075
|
-
onResult?: readonly ({
|
|
1076
|
-
_mode?: "fluent" | undefined;
|
|
1077
|
-
func?: ((res: any) => VigorParseSchema<any>["context"]["result"]) | undefined;
|
|
1078
|
-
} | {
|
|
1079
|
-
_mode?: "intercept" | undefined;
|
|
1080
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
1081
|
-
})[] | undefined;
|
|
1082
|
-
onError?: readonly ({
|
|
1083
|
-
_mode?: "fluent" | undefined;
|
|
1084
|
-
func?: ((err: any) => void) | undefined;
|
|
1085
|
-
} | {
|
|
1086
|
-
_mode?: "intercept" | undefined;
|
|
1087
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
1088
|
-
})[] | undefined;
|
|
1089
|
-
} | undefined;
|
|
1090
|
-
strategies?: {
|
|
1091
|
-
__brand?: VigorBrand<"Parse", "Policy<Strategies<Schema"> | undefined;
|
|
1092
|
-
funcs?: readonly VigorParseStrategyFunc[] | undefined;
|
|
1093
|
-
} | undefined;
|
|
1094
|
-
} | undefined;
|
|
1095
|
-
context?: {
|
|
1096
|
-
__brand?: VigorBrand<"Parse", "Context<Schema"> | undefined;
|
|
1097
|
-
result?: unknown | VigorDefaultType;
|
|
1098
|
-
error?: unknown;
|
|
1099
|
-
response?: (symbol & {
|
|
1100
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
1160
|
-
readonly headers?: {
|
|
1161
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
1162
|
-
delete?: ((name: string) => void) | undefined;
|
|
1163
|
-
get?: ((name: string) => string | null) | undefined;
|
|
1164
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
1165
|
-
has?: ((name: string) => boolean) | undefined;
|
|
1166
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
1167
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
1168
|
-
} | undefined;
|
|
1169
|
-
readonly ok?: boolean | undefined;
|
|
1170
|
-
readonly redirected?: boolean | undefined;
|
|
1171
|
-
readonly status?: number | undefined;
|
|
1172
|
-
readonly statusText?: string | undefined;
|
|
1173
|
-
readonly type?: ResponseType | undefined;
|
|
1174
|
-
readonly url?: string | undefined;
|
|
1175
|
-
clone?: (() => Response) | undefined;
|
|
1176
|
-
readonly body?: {
|
|
1177
|
-
readonly locked?: boolean | undefined;
|
|
1178
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
1179
|
-
getReader?: {
|
|
1180
|
-
(options: {
|
|
1181
|
-
mode: "byob";
|
|
1182
|
-
}): ReadableStreamBYOBReader;
|
|
1183
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
1184
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
1185
|
-
} | undefined;
|
|
1186
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
1187
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
1188
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
1189
|
-
} | null | undefined;
|
|
1190
|
-
readonly bodyUsed?: boolean | undefined;
|
|
1191
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
1192
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
1193
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
1194
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
1195
|
-
json?: (() => Promise<any>) | undefined;
|
|
1196
|
-
text?: (() => Promise<string>) | undefined;
|
|
1197
|
-
} | undefined;
|
|
1198
|
-
flags?: {
|
|
1199
|
-
overrided?: boolean | undefined;
|
|
1200
|
-
restarted?: boolean | undefined;
|
|
1201
|
-
} | undefined;
|
|
1202
|
-
record?: {
|
|
1203
|
-
[x: string]: any;
|
|
1204
|
-
} | undefined;
|
|
1205
|
-
policy?: any;
|
|
1206
|
-
} | undefined;
|
|
648
|
+
readonly policy: {
|
|
649
|
+
readonly middlewares: VigorParsePolicyMiddlewaresSchema<any>;
|
|
650
|
+
};
|
|
1207
651
|
}>>>;
|
|
1208
652
|
/** Configures the parse policy's fallback chain of parsing strategies. */
|
|
1209
653
|
strategies<const N extends VigorDeepPartial<VigorParsePolicyStrategiesSchema<T>>, R extends VigorParseSchema<any>>(input: N | ((s: VigorParsePolicyStrategies<T>) => VigorParsePolicyStrategies<R>) | VigorParsePolicyStrategies<R>): VigorParse<VigorParseIn<VigorDeepMerge<T, {
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
target?: (symbol & {
|
|
1214
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
1274
|
-
readonly headers?: {
|
|
1275
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
1276
|
-
delete?: ((name: string) => void) | undefined;
|
|
1277
|
-
get?: ((name: string) => string | null) | undefined;
|
|
1278
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
1279
|
-
has?: ((name: string) => boolean) | undefined;
|
|
1280
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
1281
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
1282
|
-
} | undefined;
|
|
1283
|
-
readonly ok?: boolean | undefined;
|
|
1284
|
-
readonly redirected?: boolean | undefined;
|
|
1285
|
-
readonly status?: number | undefined;
|
|
1286
|
-
readonly statusText?: string | undefined;
|
|
1287
|
-
readonly type?: ResponseType | undefined;
|
|
1288
|
-
readonly url?: string | undefined;
|
|
1289
|
-
clone?: (() => Response) | undefined;
|
|
1290
|
-
readonly body?: {
|
|
1291
|
-
readonly locked?: boolean | undefined;
|
|
1292
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
1293
|
-
getReader?: {
|
|
1294
|
-
(options: {
|
|
1295
|
-
mode: "byob";
|
|
1296
|
-
}): ReadableStreamBYOBReader;
|
|
1297
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
1298
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
1299
|
-
} | undefined;
|
|
1300
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
1301
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
1302
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
1303
|
-
} | null | undefined;
|
|
1304
|
-
readonly bodyUsed?: boolean | undefined;
|
|
1305
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
1306
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
1307
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
1308
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
1309
|
-
json?: (() => Promise<any>) | undefined;
|
|
1310
|
-
text?: (() => Promise<string>) | undefined;
|
|
1311
|
-
} | undefined;
|
|
1312
|
-
settings?: {
|
|
1313
|
-
__brand?: VigorBrand<"Parse", "Policy<Settings<Schema"> | undefined;
|
|
1314
|
-
raw?: boolean | undefined;
|
|
1315
|
-
default?: (symbol & {
|
|
1316
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
1317
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
1318
|
-
maxRestarts?: number | undefined;
|
|
1319
|
-
} | undefined;
|
|
1320
|
-
middlewares?: {
|
|
1321
|
-
__brand?: VigorBrand<"Parse", "Policy<Middlewares<Schema"> | undefined;
|
|
1322
|
-
before?: readonly ({
|
|
1323
|
-
_mode?: "fluent" | undefined;
|
|
1324
|
-
func?: ((ctx: any) => void) | undefined;
|
|
1325
|
-
} | {
|
|
1326
|
-
_mode?: "intercept" | undefined;
|
|
1327
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
1328
|
-
})[] | undefined;
|
|
1329
|
-
after?: readonly ({
|
|
1330
|
-
_mode?: "fluent" | undefined;
|
|
1331
|
-
func?: ((ctx: any) => void) | undefined;
|
|
1332
|
-
} | {
|
|
1333
|
-
_mode?: "intercept" | undefined;
|
|
1334
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
1335
|
-
})[] | undefined;
|
|
1336
|
-
onResult?: readonly ({
|
|
1337
|
-
_mode?: "fluent" | undefined;
|
|
1338
|
-
func?: ((res: any) => VigorParseSchema<any>["context"]["result"]) | undefined;
|
|
1339
|
-
} | {
|
|
1340
|
-
_mode?: "intercept" | undefined;
|
|
1341
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
1342
|
-
})[] | undefined;
|
|
1343
|
-
onError?: readonly ({
|
|
1344
|
-
_mode?: "fluent" | undefined;
|
|
1345
|
-
func?: ((err: any) => void) | undefined;
|
|
1346
|
-
} | {
|
|
1347
|
-
_mode?: "intercept" | undefined;
|
|
1348
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
1349
|
-
})[] | undefined;
|
|
1350
|
-
} | undefined;
|
|
1351
|
-
strategies?: {
|
|
1352
|
-
__brand?: VigorBrand<"Parse", "Policy<Strategies<Schema"> | undefined;
|
|
1353
|
-
funcs?: readonly VigorParseStrategyFunc[] | undefined;
|
|
1354
|
-
} | undefined;
|
|
1355
|
-
} | undefined;
|
|
1356
|
-
context?: {
|
|
1357
|
-
__brand?: VigorBrand<"Parse", "Context<Schema"> | undefined;
|
|
1358
|
-
result?: unknown | VigorDefaultType;
|
|
1359
|
-
error?: unknown;
|
|
1360
|
-
response?: (symbol & {
|
|
1361
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
1421
|
-
readonly headers?: {
|
|
1422
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
1423
|
-
delete?: ((name: string) => void) | undefined;
|
|
1424
|
-
get?: ((name: string) => string | null) | undefined;
|
|
1425
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
1426
|
-
has?: ((name: string) => boolean) | undefined;
|
|
1427
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
1428
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
1429
|
-
} | undefined;
|
|
1430
|
-
readonly ok?: boolean | undefined;
|
|
1431
|
-
readonly redirected?: boolean | undefined;
|
|
1432
|
-
readonly status?: number | undefined;
|
|
1433
|
-
readonly statusText?: string | undefined;
|
|
1434
|
-
readonly type?: ResponseType | undefined;
|
|
1435
|
-
readonly url?: string | undefined;
|
|
1436
|
-
clone?: (() => Response) | undefined;
|
|
1437
|
-
readonly body?: {
|
|
1438
|
-
readonly locked?: boolean | undefined;
|
|
1439
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
1440
|
-
getReader?: {
|
|
1441
|
-
(options: {
|
|
1442
|
-
mode: "byob";
|
|
1443
|
-
}): ReadableStreamBYOBReader;
|
|
1444
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
1445
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
1446
|
-
} | undefined;
|
|
1447
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
1448
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
1449
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
1450
|
-
} | null | undefined;
|
|
1451
|
-
readonly bodyUsed?: boolean | undefined;
|
|
1452
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
1453
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
1454
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
1455
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
1456
|
-
json?: (() => Promise<any>) | undefined;
|
|
1457
|
-
text?: (() => Promise<string>) | undefined;
|
|
1458
|
-
} | undefined;
|
|
1459
|
-
flags?: {
|
|
1460
|
-
overrided?: boolean | undefined;
|
|
1461
|
-
restarted?: boolean | undefined;
|
|
1462
|
-
} | undefined;
|
|
1463
|
-
record?: {
|
|
1464
|
-
[x: string]: any;
|
|
1465
|
-
} | undefined;
|
|
1466
|
-
policy?: any;
|
|
1467
|
-
} | undefined;
|
|
654
|
+
readonly policy: {
|
|
655
|
+
readonly strategies: VigorParsePolicyStrategiesSchema<any>;
|
|
656
|
+
};
|
|
1468
657
|
}>>>;
|
|
1469
658
|
/** Runs parsing and returns the result directly, throwing on final failure. */
|
|
1470
659
|
request<R = T["context"]["result"]>(): Promise<R>;
|
|
@@ -2076,279 +1265,15 @@ declare class VigorRetry<T extends VigorRetrySchema<T> = typeof VigorRetryBase>
|
|
|
2076
1265
|
}>>>;
|
|
2077
1266
|
/** Configures the retry policy's general settings (max attempts, timeout, etc). */
|
|
2078
1267
|
settings<const N extends VigorDeepPartial<VigorRetryPolicySettingsSchema<T>>, R extends VigorRetrySchema<any>>(input: N | ((s: VigorRetryPolicySettings<T>) => VigorRetryPolicySettings<R>) | VigorRetryPolicySettings<R>): VigorRetry<VigorRetryIn<VigorDeepMerge<T, {
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
target?: (symbol & {
|
|
2083
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
2084
|
-
}) | ((signal: AbortSignal) => any | Promise<any>) | undefined;
|
|
2085
|
-
abortSignals?: readonly {
|
|
2086
|
-
readonly aborted?: boolean | undefined;
|
|
2087
|
-
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
2088
|
-
readonly reason?: any;
|
|
2089
|
-
throwIfAborted?: (() => void) | undefined;
|
|
2090
|
-
addEventListener?: {
|
|
2091
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2092
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2093
|
-
} | undefined;
|
|
2094
|
-
removeEventListener?: {
|
|
2095
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2096
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2097
|
-
} | undefined;
|
|
2098
|
-
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
2099
|
-
}[] | undefined;
|
|
2100
|
-
settings?: {
|
|
2101
|
-
__brand?: VigorBrand<"Retry", "Policy<Settings<Schema"> | undefined;
|
|
2102
|
-
default?: (symbol & {
|
|
2103
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
2104
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
2105
|
-
maxAttempts?: number | undefined;
|
|
2106
|
-
maxRestarts?: number | undefined;
|
|
2107
|
-
timeout?: number | undefined;
|
|
2108
|
-
} | undefined;
|
|
2109
|
-
middlewares?: {
|
|
2110
|
-
__brand?: VigorBrand<"Retry", "Policy<Middlewares<Schema"> | undefined;
|
|
2111
|
-
before?: readonly ({
|
|
2112
|
-
_mode?: "fluent" | undefined;
|
|
2113
|
-
func?: ((ctx: any) => void) | undefined;
|
|
2114
|
-
} | {
|
|
2115
|
-
_mode?: "intercept" | undefined;
|
|
2116
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "abort" | "throwError" | "breakRetry">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2117
|
-
})[] | undefined;
|
|
2118
|
-
after?: readonly ({
|
|
2119
|
-
_mode?: "fluent" | undefined;
|
|
2120
|
-
func?: ((ctx: any) => void) | undefined;
|
|
2121
|
-
} | {
|
|
2122
|
-
_mode?: "intercept" | undefined;
|
|
2123
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2124
|
-
})[] | undefined;
|
|
2125
|
-
onResult?: readonly ({
|
|
2126
|
-
_mode?: "fluent" | undefined;
|
|
2127
|
-
func?: ((res: any) => VigorRetrySchema<any>["context"]["result"]) | undefined;
|
|
2128
|
-
} | {
|
|
2129
|
-
_mode?: "intercept" | undefined;
|
|
2130
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2131
|
-
})[] | undefined;
|
|
2132
|
-
retryIf?: readonly ({
|
|
2133
|
-
_mode?: "fluent" | undefined;
|
|
2134
|
-
func?: ((err: any) => VigorRetrySchema<any>["context"]["flags"]["doRetry"]) | undefined;
|
|
2135
|
-
} | {
|
|
2136
|
-
_mode?: "intercept" | undefined;
|
|
2137
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "proceedRetry" | "cancelRetry">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2138
|
-
})[] | undefined;
|
|
2139
|
-
onRetry?: readonly ({
|
|
2140
|
-
_mode?: "fluent" | undefined;
|
|
2141
|
-
func?: ((err: any) => void) | undefined;
|
|
2142
|
-
} | {
|
|
2143
|
-
_mode?: "intercept" | undefined;
|
|
2144
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setDelay">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2145
|
-
})[] | undefined;
|
|
2146
|
-
onError?: readonly ({
|
|
2147
|
-
_mode?: "fluent" | undefined;
|
|
2148
|
-
func?: ((err: any) => void) | undefined;
|
|
2149
|
-
} | {
|
|
2150
|
-
_mode?: "intercept" | undefined;
|
|
2151
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2152
|
-
})[] | undefined;
|
|
2153
|
-
} | undefined;
|
|
2154
|
-
algorithms?: {
|
|
2155
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Constant<Schema"> | undefined;
|
|
2156
|
-
_tag?: "constant" | undefined;
|
|
2157
|
-
jitter?: number | undefined;
|
|
2158
|
-
interval?: number | undefined;
|
|
2159
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsConstantSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
2160
|
-
} | {
|
|
2161
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Linear<Schema"> | undefined;
|
|
2162
|
-
_tag?: "linear" | undefined;
|
|
2163
|
-
jitter?: number | undefined;
|
|
2164
|
-
initial?: number | undefined;
|
|
2165
|
-
increment?: number | undefined;
|
|
2166
|
-
minDelay?: number | undefined;
|
|
2167
|
-
maxDelay?: number | undefined;
|
|
2168
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsLinearSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
2169
|
-
} | {
|
|
2170
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Backoff<Schema"> | undefined;
|
|
2171
|
-
_tag?: "backoff" | undefined;
|
|
2172
|
-
jitter?: number | undefined;
|
|
2173
|
-
initial?: number | undefined;
|
|
2174
|
-
multiplier?: number | undefined;
|
|
2175
|
-
unit?: number | undefined;
|
|
2176
|
-
minDelay?: number | undefined;
|
|
2177
|
-
maxDelay?: number | undefined;
|
|
2178
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsBackoffSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
2179
|
-
} | {
|
|
2180
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Custom<Schema"> | undefined;
|
|
2181
|
-
_tag?: "custom" | undefined;
|
|
2182
|
-
jitter?: number | undefined;
|
|
2183
|
-
minDelay?: number | undefined;
|
|
2184
|
-
maxDelay?: number | undefined;
|
|
2185
|
-
target?: (symbol & {
|
|
2186
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
2187
|
-
}) | ((att: number) => number) | undefined;
|
|
2188
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsCustomSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
2189
|
-
} | undefined;
|
|
2190
|
-
} | undefined;
|
|
2191
|
-
context?: {
|
|
2192
|
-
__brand?: VigorBrand<"Retry", "Context<Schema"> | undefined;
|
|
2193
|
-
result?: (symbol & {
|
|
2194
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
2195
|
-
}) | undefined;
|
|
2196
|
-
error?: unknown;
|
|
2197
|
-
system?: {
|
|
2198
|
-
delay?: number | (symbol & {
|
|
2199
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
2200
|
-
}) | undefined;
|
|
2201
|
-
attempt?: number | undefined;
|
|
2202
|
-
} | undefined;
|
|
2203
|
-
flags?: {
|
|
2204
|
-
doRetry?: boolean | undefined;
|
|
2205
|
-
doRestart?: boolean | undefined;
|
|
2206
|
-
brokeRetry?: boolean | undefined;
|
|
2207
|
-
overridden?: boolean | undefined;
|
|
2208
|
-
} | undefined;
|
|
2209
|
-
record?: {
|
|
2210
|
-
[x: string]: any;
|
|
2211
|
-
} | undefined;
|
|
2212
|
-
policy?: any;
|
|
2213
|
-
} | undefined;
|
|
1268
|
+
readonly policy: {
|
|
1269
|
+
readonly settings: VigorRetryPolicySettingsSchema<any>;
|
|
1270
|
+
};
|
|
2214
1271
|
}>>>;
|
|
2215
1272
|
/** Configures the retry policy's middleware pipeline. */
|
|
2216
1273
|
middlewares<const N extends VigorDeepPartial<VigorRetryPolicyMiddlewaresSchema<T>>, R extends VigorRetrySchema<any>>(input: N | ((s: VigorRetryPolicyMiddlewares<T>) => VigorRetryPolicyMiddlewares<R>) | VigorRetryPolicyMiddlewares<R>): VigorRetry<VigorRetryIn<VigorDeepMerge<T, {
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
target?: (symbol & {
|
|
2221
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
2222
|
-
}) | ((signal: AbortSignal) => any | Promise<any>) | undefined;
|
|
2223
|
-
abortSignals?: readonly {
|
|
2224
|
-
readonly aborted?: boolean | undefined;
|
|
2225
|
-
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
2226
|
-
readonly reason?: any;
|
|
2227
|
-
throwIfAborted?: (() => void) | undefined;
|
|
2228
|
-
addEventListener?: {
|
|
2229
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
2230
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
2231
|
-
} | undefined;
|
|
2232
|
-
removeEventListener?: {
|
|
2233
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
2234
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2235
|
-
} | undefined;
|
|
2236
|
-
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
2237
|
-
}[] | undefined;
|
|
2238
|
-
settings?: {
|
|
2239
|
-
__brand?: VigorBrand<"Retry", "Policy<Settings<Schema"> | undefined;
|
|
2240
|
-
default?: (symbol & {
|
|
2241
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
2242
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
2243
|
-
maxAttempts?: number | undefined;
|
|
2244
|
-
maxRestarts?: number | undefined;
|
|
2245
|
-
timeout?: number | undefined;
|
|
2246
|
-
} | undefined;
|
|
2247
|
-
middlewares?: {
|
|
2248
|
-
__brand?: VigorBrand<"Retry", "Policy<Middlewares<Schema"> | undefined;
|
|
2249
|
-
before?: readonly ({
|
|
2250
|
-
_mode?: "fluent" | undefined;
|
|
2251
|
-
func?: ((ctx: any) => void) | undefined;
|
|
2252
|
-
} | {
|
|
2253
|
-
_mode?: "intercept" | undefined;
|
|
2254
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "abort" | "throwError" | "breakRetry">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2255
|
-
})[] | undefined;
|
|
2256
|
-
after?: readonly ({
|
|
2257
|
-
_mode?: "fluent" | undefined;
|
|
2258
|
-
func?: ((ctx: any) => void) | undefined;
|
|
2259
|
-
} | {
|
|
2260
|
-
_mode?: "intercept" | undefined;
|
|
2261
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2262
|
-
})[] | undefined;
|
|
2263
|
-
onResult?: readonly ({
|
|
2264
|
-
_mode?: "fluent" | undefined;
|
|
2265
|
-
func?: ((res: any) => VigorRetrySchema<any>["context"]["result"]) | undefined;
|
|
2266
|
-
} | {
|
|
2267
|
-
_mode?: "intercept" | undefined;
|
|
2268
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2269
|
-
})[] | undefined;
|
|
2270
|
-
retryIf?: readonly ({
|
|
2271
|
-
_mode?: "fluent" | undefined;
|
|
2272
|
-
func?: ((err: any) => VigorRetrySchema<any>["context"]["flags"]["doRetry"]) | undefined;
|
|
2273
|
-
} | {
|
|
2274
|
-
_mode?: "intercept" | undefined;
|
|
2275
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "proceedRetry" | "cancelRetry">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2276
|
-
})[] | undefined;
|
|
2277
|
-
onRetry?: readonly ({
|
|
2278
|
-
_mode?: "fluent" | undefined;
|
|
2279
|
-
func?: ((err: any) => void) | undefined;
|
|
2280
|
-
} | {
|
|
2281
|
-
_mode?: "intercept" | undefined;
|
|
2282
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setDelay">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2283
|
-
})[] | undefined;
|
|
2284
|
-
onError?: readonly ({
|
|
2285
|
-
_mode?: "fluent" | undefined;
|
|
2286
|
-
func?: ((err: any) => void) | undefined;
|
|
2287
|
-
} | {
|
|
2288
|
-
_mode?: "intercept" | undefined;
|
|
2289
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
2290
|
-
})[] | undefined;
|
|
2291
|
-
} | undefined;
|
|
2292
|
-
algorithms?: {
|
|
2293
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Constant<Schema"> | undefined;
|
|
2294
|
-
_tag?: "constant" | undefined;
|
|
2295
|
-
jitter?: number | undefined;
|
|
2296
|
-
interval?: number | undefined;
|
|
2297
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsConstantSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
2298
|
-
} | {
|
|
2299
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Linear<Schema"> | undefined;
|
|
2300
|
-
_tag?: "linear" | undefined;
|
|
2301
|
-
jitter?: number | undefined;
|
|
2302
|
-
initial?: number | undefined;
|
|
2303
|
-
increment?: number | undefined;
|
|
2304
|
-
minDelay?: number | undefined;
|
|
2305
|
-
maxDelay?: number | undefined;
|
|
2306
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsLinearSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
2307
|
-
} | {
|
|
2308
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Backoff<Schema"> | undefined;
|
|
2309
|
-
_tag?: "backoff" | undefined;
|
|
2310
|
-
jitter?: number | undefined;
|
|
2311
|
-
initial?: number | undefined;
|
|
2312
|
-
multiplier?: number | undefined;
|
|
2313
|
-
unit?: number | undefined;
|
|
2314
|
-
minDelay?: number | undefined;
|
|
2315
|
-
maxDelay?: number | undefined;
|
|
2316
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsBackoffSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
2317
|
-
} | {
|
|
2318
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Custom<Schema"> | undefined;
|
|
2319
|
-
_tag?: "custom" | undefined;
|
|
2320
|
-
jitter?: number | undefined;
|
|
2321
|
-
minDelay?: number | undefined;
|
|
2322
|
-
maxDelay?: number | undefined;
|
|
2323
|
-
target?: (symbol & {
|
|
2324
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
2325
|
-
}) | ((att: number) => number) | undefined;
|
|
2326
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsCustomSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
2327
|
-
} | undefined;
|
|
2328
|
-
} | undefined;
|
|
2329
|
-
context?: {
|
|
2330
|
-
__brand?: VigorBrand<"Retry", "Context<Schema"> | undefined;
|
|
2331
|
-
result?: (symbol & {
|
|
2332
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
2333
|
-
}) | undefined;
|
|
2334
|
-
error?: unknown;
|
|
2335
|
-
system?: {
|
|
2336
|
-
delay?: number | (symbol & {
|
|
2337
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
2338
|
-
}) | undefined;
|
|
2339
|
-
attempt?: number | undefined;
|
|
2340
|
-
} | undefined;
|
|
2341
|
-
flags?: {
|
|
2342
|
-
doRetry?: boolean | undefined;
|
|
2343
|
-
doRestart?: boolean | undefined;
|
|
2344
|
-
brokeRetry?: boolean | undefined;
|
|
2345
|
-
overridden?: boolean | undefined;
|
|
2346
|
-
} | undefined;
|
|
2347
|
-
record?: {
|
|
2348
|
-
[x: string]: any;
|
|
2349
|
-
} | undefined;
|
|
2350
|
-
policy?: any;
|
|
2351
|
-
} | undefined;
|
|
1274
|
+
readonly policy: {
|
|
1275
|
+
readonly middlewares: VigorRetryPolicyMiddlewaresSchema<any>;
|
|
1276
|
+
};
|
|
2352
1277
|
}>>>;
|
|
2353
1278
|
/** Configures the retry policy's delay algorithm. */
|
|
2354
1279
|
algorithms<const N extends VigorDeepPartial<VigorRetryPolicyAlgorithmsSchema<T>>, R extends VigorRetrySchema<any>>(input: N | ((a: VigorRetryPolicyAlgorithms<T>) => VigorRetryPolicyAlgorithms<R> | VigorRetryPolicyAlgorithmsConstant<any>)): VigorRetry<VigorRetryIn<VigorDeepMerge<T, {
|
|
@@ -3597,1411 +2522,15 @@ declare class VigorFetch<T extends VigorFetchSchema<T> = typeof VigorFetchBase>
|
|
|
3597
2522
|
}>>>;
|
|
3598
2523
|
/** Configures the fetch policy's general settings. */
|
|
3599
2524
|
settings<const N extends VigorDeepPartial<VigorFetchPolicySettingsSchema<T>>, R extends VigorFetchSchema<any>>(input: N | ((s: VigorFetchPolicySettings<T>) => VigorFetchPolicySettings<R>) | VigorFetchPolicySettings<R>): VigorFetch<VigorFetchIn<VigorDeepMerge<T, {
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
method?: VigorFetchOptions["method"] | VigorEmptyType;
|
|
3604
|
-
origin?: string | (symbol & {
|
|
3605
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
3606
|
-
}) | undefined;
|
|
3607
|
-
path?: readonly string[] | undefined;
|
|
3608
|
-
query?: readonly {
|
|
3609
|
-
[x: string]: VigorStringable | readonly VigorStringable[];
|
|
3610
|
-
}[] | undefined;
|
|
3611
|
-
hash?: string | undefined;
|
|
3612
|
-
headers?: {
|
|
3613
|
-
[x: string]: string | undefined;
|
|
3614
|
-
} | undefined;
|
|
3615
|
-
body?: string | object | (symbol & {
|
|
3616
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
3617
|
-
}) | {
|
|
3618
|
-
readonly locked?: boolean | undefined;
|
|
3619
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
3620
|
-
getReader?: {
|
|
3621
|
-
(options: {
|
|
3622
|
-
mode: "byob";
|
|
3623
|
-
}): ReadableStreamBYOBReader;
|
|
3624
|
-
(): ReadableStreamDefaultReader<any>;
|
|
3625
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<any>;
|
|
3626
|
-
} | undefined;
|
|
3627
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, any>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
3628
|
-
pipeTo?: ((destination: WritableStream<any>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
3629
|
-
tee?: (() => [ReadableStream<any>, ReadableStream<any>]) | undefined;
|
|
3630
|
-
} | {
|
|
3631
|
-
readonly size?: number | undefined;
|
|
3632
|
-
readonly type?: string | undefined;
|
|
3633
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
3634
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
3635
|
-
slice?: ((start?: number, end?: number, contentType?: string) => Blob) | undefined;
|
|
3636
|
-
stream?: (() => ReadableStream<Uint8Array<ArrayBuffer>>) | undefined;
|
|
3637
|
-
text?: (() => Promise<string>) | undefined;
|
|
3638
|
-
} | {
|
|
3639
|
-
readonly byteLength?: number | undefined;
|
|
3640
|
-
slice?: ((begin?: number, end?: number) => ArrayBuffer) | undefined;
|
|
3641
|
-
readonly maxByteLength?: number | undefined;
|
|
3642
|
-
readonly resizable?: boolean | undefined;
|
|
3643
|
-
resize?: ((newByteLength?: number) => void) | undefined;
|
|
3644
|
-
readonly detached?: boolean | undefined;
|
|
3645
|
-
transfer?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
3646
|
-
transferToFixedLength?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
3647
|
-
readonly [Symbol.toStringTag]?: "ArrayBuffer" | undefined;
|
|
3648
|
-
} | {
|
|
3649
|
-
readonly buffer?: {
|
|
3650
|
-
readonly byteLength?: number | undefined;
|
|
3651
|
-
slice?: ((begin?: number, end?: number) => ArrayBuffer) | undefined;
|
|
3652
|
-
readonly maxByteLength?: number | undefined;
|
|
3653
|
-
readonly resizable?: boolean | undefined;
|
|
3654
|
-
resize?: ((newByteLength?: number) => void) | undefined;
|
|
3655
|
-
readonly detached?: boolean | undefined;
|
|
3656
|
-
transfer?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
3657
|
-
transferToFixedLength?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
3658
|
-
readonly [Symbol.toStringTag]?: "ArrayBuffer" | undefined;
|
|
3659
|
-
} | undefined;
|
|
3660
|
-
readonly byteLength?: number | undefined;
|
|
3661
|
-
readonly byteOffset?: number | undefined;
|
|
3662
|
-
} | {
|
|
3663
|
-
append?: {
|
|
3664
|
-
(name: string, value: string | Blob): void;
|
|
3665
|
-
(name: string, value: string): void;
|
|
3666
|
-
(name: string, blobValue: Blob, filename?: string): void;
|
|
3667
|
-
} | undefined;
|
|
3668
|
-
delete?: ((name: string) => void) | undefined;
|
|
3669
|
-
get?: ((name: string) => FormDataEntryValue | null) | undefined;
|
|
3670
|
-
getAll?: ((name: string) => FormDataEntryValue[]) | undefined;
|
|
3671
|
-
has?: ((name: string) => boolean) | undefined;
|
|
3672
|
-
set?: {
|
|
3673
|
-
(name: string, value: string | Blob): void;
|
|
3674
|
-
(name: string, value: string): void;
|
|
3675
|
-
(name: string, blobValue: Blob, filename?: string): void;
|
|
3676
|
-
} | undefined;
|
|
3677
|
-
forEach?: ((callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any) => void) | undefined;
|
|
3678
|
-
} | {
|
|
3679
|
-
readonly size?: number | undefined;
|
|
3680
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
3681
|
-
delete?: ((name: string, value?: string) => void) | undefined;
|
|
3682
|
-
get?: ((name: string) => string | null) | undefined;
|
|
3683
|
-
getAll?: ((name: string) => string[]) | undefined;
|
|
3684
|
-
has?: ((name: string, value?: string) => boolean) | undefined;
|
|
3685
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
3686
|
-
sort?: (() => void) | undefined;
|
|
3687
|
-
toString?: (() => string) | undefined;
|
|
3688
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any) => void) | undefined;
|
|
3689
|
-
} | null | undefined;
|
|
3690
|
-
extra?: {
|
|
3691
|
-
cache?: RequestCache | undefined;
|
|
3692
|
-
credentials?: RequestCredentials | undefined;
|
|
3693
|
-
integrity?: string | undefined;
|
|
3694
|
-
keepalive?: boolean | undefined;
|
|
3695
|
-
mode?: RequestMode | undefined;
|
|
3696
|
-
redirect?: RequestRedirect | undefined;
|
|
3697
|
-
referrer?: string | undefined;
|
|
3698
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
3699
|
-
priority?: RequestPriority | undefined;
|
|
3700
|
-
window?: null | undefined;
|
|
3701
|
-
} | undefined;
|
|
3702
|
-
settings?: {
|
|
3703
|
-
__brand?: VigorBrand<"Fetch", "Policy<Settings<Schema"> | undefined;
|
|
3704
|
-
retryHeaders?: readonly string[] | undefined;
|
|
3705
|
-
unretryStatus?: readonly number[] | undefined;
|
|
3706
|
-
maxRestarts?: number | undefined;
|
|
3707
|
-
default?: (symbol & {
|
|
3708
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
3709
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
3710
|
-
} | undefined;
|
|
3711
|
-
middlewares?: {
|
|
3712
|
-
__brand?: VigorBrand<"Fetch", "Policy<Middlewares<Schema"> | undefined;
|
|
3713
|
-
before?: readonly ({
|
|
3714
|
-
_mode?: "fluent" | undefined;
|
|
3715
|
-
func?: ((ctx: any) => void) | undefined;
|
|
3716
|
-
} | {
|
|
3717
|
-
_mode?: "intercept" | undefined;
|
|
3718
|
-
func?: ((ctx: any, api: Pick<VigorFetchPolicyMiddlewaresApi<any>, "throwError" | "setOptions" | "setHeaders" | "setBody">) => VigorFetchSchema<any>["context"] | Promise<VigorFetchSchema<any>["context"]>) | undefined;
|
|
3719
|
-
})[] | undefined;
|
|
3720
|
-
after?: readonly ({
|
|
3721
|
-
_mode?: "fluent" | undefined;
|
|
3722
|
-
func?: ((ctx: any) => void) | undefined;
|
|
3723
|
-
} | {
|
|
3724
|
-
_mode?: "intercept" | undefined;
|
|
3725
|
-
func?: ((ctx: any, api: Pick<VigorFetchPolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorFetchSchema<any>["context"] | Promise<VigorFetchSchema<any>["context"]>) | undefined;
|
|
3726
|
-
})[] | undefined;
|
|
3727
|
-
onResult?: readonly ({
|
|
3728
|
-
_mode?: "fluent" | undefined;
|
|
3729
|
-
func?: ((res: any) => VigorFetchSchema<any>["context"]["result"]) | undefined;
|
|
3730
|
-
} | {
|
|
3731
|
-
_mode?: "intercept" | undefined;
|
|
3732
|
-
func?: ((ctx: any, api: Pick<VigorFetchPolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorFetchSchema<any>["context"] | Promise<VigorFetchSchema<any>["context"]>) | undefined;
|
|
3733
|
-
})[] | undefined;
|
|
3734
|
-
onError?: readonly ({
|
|
3735
|
-
_mode?: "fluent" | undefined;
|
|
3736
|
-
func?: ((err: any) => void) | undefined;
|
|
3737
|
-
} | {
|
|
3738
|
-
_mode?: "intercept" | undefined;
|
|
3739
|
-
func?: ((ctx: any, api: Pick<VigorFetchPolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorFetchSchema<any>["context"] | Promise<VigorFetchSchema<any>["context"]>) | undefined;
|
|
3740
|
-
})[] | undefined;
|
|
3741
|
-
} | undefined;
|
|
3742
|
-
retry?: {
|
|
3743
|
-
__brand?: VigorBrand<"Retry", "Schema"> | undefined;
|
|
3744
|
-
policy?: {
|
|
3745
|
-
__brand?: VigorBrand<"Retry", "Policy<Schema"> | undefined;
|
|
3746
|
-
target?: (symbol & {
|
|
3747
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
3748
|
-
}) | ((signal: AbortSignal) => any | Promise<any>) | undefined;
|
|
3749
|
-
abortSignals?: readonly {
|
|
3750
|
-
readonly aborted?: boolean | undefined;
|
|
3751
|
-
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
3752
|
-
readonly reason?: any;
|
|
3753
|
-
throwIfAborted?: (() => void) | undefined;
|
|
3754
|
-
addEventListener?: {
|
|
3755
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
3756
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
3757
|
-
} | undefined;
|
|
3758
|
-
removeEventListener?: {
|
|
3759
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
3760
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
3761
|
-
} | undefined;
|
|
3762
|
-
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
3763
|
-
}[] | undefined;
|
|
3764
|
-
settings?: {
|
|
3765
|
-
__brand?: VigorBrand<"Retry", "Policy<Settings<Schema"> | undefined;
|
|
3766
|
-
default?: (symbol & {
|
|
3767
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
3768
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
3769
|
-
maxAttempts?: number | undefined;
|
|
3770
|
-
maxRestarts?: number | undefined;
|
|
3771
|
-
timeout?: number | undefined;
|
|
3772
|
-
} | undefined;
|
|
3773
|
-
middlewares?: {
|
|
3774
|
-
__brand?: VigorBrand<"Retry", "Policy<Middlewares<Schema"> | undefined;
|
|
3775
|
-
before?: readonly ({
|
|
3776
|
-
_mode?: "fluent" | undefined;
|
|
3777
|
-
func?: ((ctx: any) => void) | undefined;
|
|
3778
|
-
} | {
|
|
3779
|
-
_mode?: "intercept" | undefined;
|
|
3780
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "abort" | "throwError" | "breakRetry">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
3781
|
-
})[] | undefined;
|
|
3782
|
-
after?: readonly ({
|
|
3783
|
-
_mode?: "fluent" | undefined;
|
|
3784
|
-
func?: ((ctx: any) => void) | undefined;
|
|
3785
|
-
} | {
|
|
3786
|
-
_mode?: "intercept" | undefined;
|
|
3787
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
3788
|
-
})[] | undefined;
|
|
3789
|
-
onResult?: readonly ({
|
|
3790
|
-
_mode?: "fluent" | undefined;
|
|
3791
|
-
func?: ((res: any) => VigorRetrySchema<any>["context"]["result"]) | undefined;
|
|
3792
|
-
} | {
|
|
3793
|
-
_mode?: "intercept" | undefined;
|
|
3794
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
3795
|
-
})[] | undefined;
|
|
3796
|
-
retryIf?: readonly ({
|
|
3797
|
-
_mode?: "fluent" | undefined;
|
|
3798
|
-
func?: ((err: any) => VigorRetrySchema<any>["context"]["flags"]["doRetry"]) | undefined;
|
|
3799
|
-
} | {
|
|
3800
|
-
_mode?: "intercept" | undefined;
|
|
3801
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "proceedRetry" | "cancelRetry">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
3802
|
-
})[] | undefined;
|
|
3803
|
-
onRetry?: readonly ({
|
|
3804
|
-
_mode?: "fluent" | undefined;
|
|
3805
|
-
func?: ((err: any) => void) | undefined;
|
|
3806
|
-
} | {
|
|
3807
|
-
_mode?: "intercept" | undefined;
|
|
3808
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setDelay">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
3809
|
-
})[] | undefined;
|
|
3810
|
-
onError?: readonly ({
|
|
3811
|
-
_mode?: "fluent" | undefined;
|
|
3812
|
-
func?: ((err: any) => void) | undefined;
|
|
3813
|
-
} | {
|
|
3814
|
-
_mode?: "intercept" | undefined;
|
|
3815
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
3816
|
-
})[] | undefined;
|
|
3817
|
-
} | undefined;
|
|
3818
|
-
algorithms?: {
|
|
3819
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Constant<Schema"> | undefined;
|
|
3820
|
-
_tag?: "constant" | undefined;
|
|
3821
|
-
jitter?: number | undefined;
|
|
3822
|
-
interval?: number | undefined;
|
|
3823
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsConstantSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
3824
|
-
} | {
|
|
3825
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Linear<Schema"> | undefined;
|
|
3826
|
-
_tag?: "linear" | undefined;
|
|
3827
|
-
jitter?: number | undefined;
|
|
3828
|
-
initial?: number | undefined;
|
|
3829
|
-
increment?: number | undefined;
|
|
3830
|
-
minDelay?: number | undefined;
|
|
3831
|
-
maxDelay?: number | undefined;
|
|
3832
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsLinearSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
3833
|
-
} | {
|
|
3834
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Backoff<Schema"> | undefined;
|
|
3835
|
-
_tag?: "backoff" | undefined;
|
|
3836
|
-
jitter?: number | undefined;
|
|
3837
|
-
initial?: number | undefined;
|
|
3838
|
-
multiplier?: number | undefined;
|
|
3839
|
-
unit?: number | undefined;
|
|
3840
|
-
minDelay?: number | undefined;
|
|
3841
|
-
maxDelay?: number | undefined;
|
|
3842
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsBackoffSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
3843
|
-
} | {
|
|
3844
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Custom<Schema"> | undefined;
|
|
3845
|
-
_tag?: "custom" | undefined;
|
|
3846
|
-
jitter?: number | undefined;
|
|
3847
|
-
minDelay?: number | undefined;
|
|
3848
|
-
maxDelay?: number | undefined;
|
|
3849
|
-
target?: (symbol & {
|
|
3850
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
3851
|
-
}) | ((att: number) => number) | undefined;
|
|
3852
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsCustomSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
3853
|
-
} | undefined;
|
|
3854
|
-
} | undefined;
|
|
3855
|
-
context?: {
|
|
3856
|
-
__brand?: VigorBrand<"Retry", "Context<Schema"> | undefined;
|
|
3857
|
-
result?: (symbol & {
|
|
3858
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
3859
|
-
}) | undefined;
|
|
3860
|
-
error?: unknown;
|
|
3861
|
-
system?: {
|
|
3862
|
-
delay?: number | (symbol & {
|
|
3863
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
3864
|
-
}) | undefined;
|
|
3865
|
-
attempt?: number | undefined;
|
|
3866
|
-
} | undefined;
|
|
3867
|
-
flags?: {
|
|
3868
|
-
doRetry?: boolean | undefined;
|
|
3869
|
-
doRestart?: boolean | undefined;
|
|
3870
|
-
brokeRetry?: boolean | undefined;
|
|
3871
|
-
overridden?: boolean | undefined;
|
|
3872
|
-
} | undefined;
|
|
3873
|
-
record?: {
|
|
3874
|
-
[x: string]: any;
|
|
3875
|
-
} | undefined;
|
|
3876
|
-
policy?: any;
|
|
3877
|
-
} | undefined;
|
|
3878
|
-
} | undefined;
|
|
3879
|
-
parse?: {
|
|
3880
|
-
__brand?: VigorBrand<"Parse", "Schema"> | undefined;
|
|
3881
|
-
policy?: {
|
|
3882
|
-
__brand?: VigorBrand<"Parse", "Policy<Schema"> | undefined;
|
|
3883
|
-
target?: (symbol & {
|
|
3884
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
3944
|
-
readonly headers?: {
|
|
3945
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
3946
|
-
delete?: ((name: string) => void) | undefined;
|
|
3947
|
-
get?: ((name: string) => string | null) | undefined;
|
|
3948
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
3949
|
-
has?: ((name: string) => boolean) | undefined;
|
|
3950
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
3951
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
3952
|
-
} | undefined;
|
|
3953
|
-
readonly ok?: boolean | undefined;
|
|
3954
|
-
readonly redirected?: boolean | undefined;
|
|
3955
|
-
readonly status?: number | undefined;
|
|
3956
|
-
readonly statusText?: string | undefined;
|
|
3957
|
-
readonly type?: ResponseType | undefined;
|
|
3958
|
-
readonly url?: string | undefined;
|
|
3959
|
-
clone?: (() => Response) | undefined;
|
|
3960
|
-
readonly body?: {
|
|
3961
|
-
readonly locked?: boolean | undefined;
|
|
3962
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
3963
|
-
getReader?: {
|
|
3964
|
-
(options: {
|
|
3965
|
-
mode: "byob";
|
|
3966
|
-
}): ReadableStreamBYOBReader;
|
|
3967
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
3968
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
3969
|
-
} | undefined;
|
|
3970
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
3971
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
3972
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
3973
|
-
} | null | undefined;
|
|
3974
|
-
readonly bodyUsed?: boolean | undefined;
|
|
3975
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
3976
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
3977
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
3978
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
3979
|
-
json?: (() => Promise<any>) | undefined;
|
|
3980
|
-
text?: (() => Promise<string>) | undefined;
|
|
3981
|
-
} | undefined;
|
|
3982
|
-
settings?: {
|
|
3983
|
-
__brand?: VigorBrand<"Parse", "Policy<Settings<Schema"> | undefined;
|
|
3984
|
-
raw?: boolean | undefined;
|
|
3985
|
-
default?: (symbol & {
|
|
3986
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
3987
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
3988
|
-
maxRestarts?: number | undefined;
|
|
3989
|
-
} | undefined;
|
|
3990
|
-
middlewares?: {
|
|
3991
|
-
__brand?: VigorBrand<"Parse", "Policy<Middlewares<Schema"> | undefined;
|
|
3992
|
-
before?: readonly ({
|
|
3993
|
-
_mode?: "fluent" | undefined;
|
|
3994
|
-
func?: ((ctx: any) => void) | undefined;
|
|
3995
|
-
} | {
|
|
3996
|
-
_mode?: "intercept" | undefined;
|
|
3997
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
3998
|
-
})[] | undefined;
|
|
3999
|
-
after?: readonly ({
|
|
4000
|
-
_mode?: "fluent" | undefined;
|
|
4001
|
-
func?: ((ctx: any) => void) | undefined;
|
|
4002
|
-
} | {
|
|
4003
|
-
_mode?: "intercept" | undefined;
|
|
4004
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
4005
|
-
})[] | undefined;
|
|
4006
|
-
onResult?: readonly ({
|
|
4007
|
-
_mode?: "fluent" | undefined;
|
|
4008
|
-
func?: ((res: any) => VigorParseSchema<any>["context"]["result"]) | undefined;
|
|
4009
|
-
} | {
|
|
4010
|
-
_mode?: "intercept" | undefined;
|
|
4011
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
4012
|
-
})[] | undefined;
|
|
4013
|
-
onError?: readonly ({
|
|
4014
|
-
_mode?: "fluent" | undefined;
|
|
4015
|
-
func?: ((err: any) => void) | undefined;
|
|
4016
|
-
} | {
|
|
4017
|
-
_mode?: "intercept" | undefined;
|
|
4018
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
4019
|
-
})[] | undefined;
|
|
4020
|
-
} | undefined;
|
|
4021
|
-
strategies?: {
|
|
4022
|
-
__brand?: VigorBrand<"Parse", "Policy<Strategies<Schema"> | undefined;
|
|
4023
|
-
funcs?: readonly VigorParseStrategyFunc[] | undefined;
|
|
4024
|
-
} | undefined;
|
|
4025
|
-
} | undefined;
|
|
4026
|
-
context?: {
|
|
4027
|
-
__brand?: VigorBrand<"Parse", "Context<Schema"> | undefined;
|
|
4028
|
-
result?: unknown | VigorDefaultType;
|
|
4029
|
-
error?: unknown;
|
|
4030
|
-
response?: (symbol & {
|
|
4031
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
4091
|
-
readonly headers?: {
|
|
4092
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
4093
|
-
delete?: ((name: string) => void) | undefined;
|
|
4094
|
-
get?: ((name: string) => string | null) | undefined;
|
|
4095
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
4096
|
-
has?: ((name: string) => boolean) | undefined;
|
|
4097
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
4098
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
4099
|
-
} | undefined;
|
|
4100
|
-
readonly ok?: boolean | undefined;
|
|
4101
|
-
readonly redirected?: boolean | undefined;
|
|
4102
|
-
readonly status?: number | undefined;
|
|
4103
|
-
readonly statusText?: string | undefined;
|
|
4104
|
-
readonly type?: ResponseType | undefined;
|
|
4105
|
-
readonly url?: string | undefined;
|
|
4106
|
-
clone?: (() => Response) | undefined;
|
|
4107
|
-
readonly body?: {
|
|
4108
|
-
readonly locked?: boolean | undefined;
|
|
4109
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4110
|
-
getReader?: {
|
|
4111
|
-
(options: {
|
|
4112
|
-
mode: "byob";
|
|
4113
|
-
}): ReadableStreamBYOBReader;
|
|
4114
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
4115
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
4116
|
-
} | undefined;
|
|
4117
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4118
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4119
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
4120
|
-
} | null | undefined;
|
|
4121
|
-
readonly bodyUsed?: boolean | undefined;
|
|
4122
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4123
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
4124
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4125
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
4126
|
-
json?: (() => Promise<any>) | undefined;
|
|
4127
|
-
text?: (() => Promise<string>) | undefined;
|
|
4128
|
-
} | undefined;
|
|
4129
|
-
flags?: {
|
|
4130
|
-
overrided?: boolean | undefined;
|
|
4131
|
-
restarted?: boolean | undefined;
|
|
4132
|
-
} | undefined;
|
|
4133
|
-
record?: {
|
|
4134
|
-
[x: string]: any;
|
|
4135
|
-
} | undefined;
|
|
4136
|
-
policy?: any;
|
|
4137
|
-
} | undefined;
|
|
4138
|
-
} | undefined;
|
|
4139
|
-
} | undefined;
|
|
4140
|
-
context?: {
|
|
4141
|
-
__brand?: VigorBrand<"Fetch", "Context<Schema"> | undefined;
|
|
4142
|
-
href?: string | undefined;
|
|
4143
|
-
response?: (symbol & {
|
|
4144
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4145
|
-
}) | {
|
|
4146
|
-
readonly headers?: {
|
|
4147
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
4148
|
-
delete?: ((name: string) => void) | undefined;
|
|
4149
|
-
get?: ((name: string) => string | null) | undefined;
|
|
4150
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
4151
|
-
has?: ((name: string) => boolean) | undefined;
|
|
4152
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
4153
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
4154
|
-
} | undefined;
|
|
4155
|
-
readonly ok?: boolean | undefined;
|
|
4156
|
-
readonly redirected?: boolean | undefined;
|
|
4157
|
-
readonly status?: number | undefined;
|
|
4158
|
-
readonly statusText?: string | undefined;
|
|
4159
|
-
readonly type?: ResponseType | undefined;
|
|
4160
|
-
readonly url?: string | undefined;
|
|
4161
|
-
clone?: (() => Response) | undefined;
|
|
4162
|
-
readonly body?: {
|
|
4163
|
-
readonly locked?: boolean | undefined;
|
|
4164
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4165
|
-
getReader?: {
|
|
4166
|
-
(options: {
|
|
4167
|
-
mode: "byob";
|
|
4168
|
-
}): ReadableStreamBYOBReader;
|
|
4169
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
4170
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
4171
|
-
} | undefined;
|
|
4172
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4173
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4174
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
4175
|
-
} | null | undefined;
|
|
4176
|
-
readonly bodyUsed?: boolean | undefined;
|
|
4177
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4178
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
4179
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4180
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
4181
|
-
json?: (() => Promise<any>) | undefined;
|
|
4182
|
-
text?: (() => Promise<string>) | undefined;
|
|
4183
|
-
} | undefined;
|
|
4184
|
-
result?: unknown | VigorDefaultType;
|
|
4185
|
-
error?: unknown;
|
|
4186
|
-
options?: (symbol & {
|
|
4187
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4188
|
-
}) | {
|
|
4189
|
-
cache?: RequestCache | undefined;
|
|
4190
|
-
credentials?: RequestCredentials | undefined;
|
|
4191
|
-
integrity?: string | undefined;
|
|
4192
|
-
keepalive?: boolean | undefined;
|
|
4193
|
-
mode?: RequestMode | undefined;
|
|
4194
|
-
redirect?: RequestRedirect | undefined;
|
|
4195
|
-
referrer?: string | undefined;
|
|
4196
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4197
|
-
priority?: RequestPriority | undefined;
|
|
4198
|
-
window?: null | undefined;
|
|
4199
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | "CONNECT" | "TRACE" | undefined;
|
|
4200
|
-
headers?: {
|
|
4201
|
-
[x: string]: string | undefined;
|
|
4202
|
-
} | undefined;
|
|
4203
|
-
body?: string | {
|
|
4204
|
-
readonly locked?: boolean | undefined;
|
|
4205
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4206
|
-
getReader?: {
|
|
4207
|
-
(options: {
|
|
4208
|
-
mode: "byob";
|
|
4209
|
-
}): ReadableStreamBYOBReader;
|
|
4210
|
-
(): ReadableStreamDefaultReader<any>;
|
|
4211
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<any>;
|
|
4212
|
-
} | undefined;
|
|
4213
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, any>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4214
|
-
pipeTo?: ((destination: WritableStream<any>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4215
|
-
tee?: (() => [ReadableStream<any>, ReadableStream<any>]) | undefined;
|
|
4216
|
-
} | {
|
|
4217
|
-
readonly size?: number | undefined;
|
|
4218
|
-
readonly type?: string | undefined;
|
|
4219
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4220
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4221
|
-
slice?: ((start?: number, end?: number, contentType?: string) => Blob) | undefined;
|
|
4222
|
-
stream?: (() => ReadableStream<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4223
|
-
text?: (() => Promise<string>) | undefined;
|
|
4224
|
-
} | {
|
|
4225
|
-
readonly byteLength?: number | undefined;
|
|
4226
|
-
slice?: ((begin?: number, end?: number) => ArrayBuffer) | undefined;
|
|
4227
|
-
readonly maxByteLength?: number | undefined;
|
|
4228
|
-
readonly resizable?: boolean | undefined;
|
|
4229
|
-
resize?: ((newByteLength?: number) => void) | undefined;
|
|
4230
|
-
readonly detached?: boolean | undefined;
|
|
4231
|
-
transfer?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4232
|
-
transferToFixedLength?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4233
|
-
readonly [Symbol.toStringTag]?: "ArrayBuffer" | undefined;
|
|
4234
|
-
} | {
|
|
4235
|
-
readonly buffer?: {
|
|
4236
|
-
readonly byteLength?: number | undefined;
|
|
4237
|
-
slice?: ((begin?: number, end?: number) => ArrayBuffer) | undefined;
|
|
4238
|
-
readonly maxByteLength?: number | undefined;
|
|
4239
|
-
readonly resizable?: boolean | undefined;
|
|
4240
|
-
resize?: ((newByteLength?: number) => void) | undefined;
|
|
4241
|
-
readonly detached?: boolean | undefined;
|
|
4242
|
-
transfer?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4243
|
-
transferToFixedLength?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4244
|
-
readonly [Symbol.toStringTag]?: "ArrayBuffer" | undefined;
|
|
4245
|
-
} | undefined;
|
|
4246
|
-
readonly byteLength?: number | undefined;
|
|
4247
|
-
readonly byteOffset?: number | undefined;
|
|
4248
|
-
} | {
|
|
4249
|
-
append?: {
|
|
4250
|
-
(name: string, value: string | Blob): void;
|
|
4251
|
-
(name: string, value: string): void;
|
|
4252
|
-
(name: string, blobValue: Blob, filename?: string): void;
|
|
4253
|
-
} | undefined;
|
|
4254
|
-
delete?: ((name: string) => void) | undefined;
|
|
4255
|
-
get?: ((name: string) => FormDataEntryValue | null) | undefined;
|
|
4256
|
-
getAll?: ((name: string) => FormDataEntryValue[]) | undefined;
|
|
4257
|
-
has?: ((name: string) => boolean) | undefined;
|
|
4258
|
-
set?: {
|
|
4259
|
-
(name: string, value: string | Blob): void;
|
|
4260
|
-
(name: string, value: string): void;
|
|
4261
|
-
(name: string, blobValue: Blob, filename?: string): void;
|
|
4262
|
-
} | undefined;
|
|
4263
|
-
forEach?: ((callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any) => void) | undefined;
|
|
4264
|
-
} | {
|
|
4265
|
-
readonly size?: number | undefined;
|
|
4266
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
4267
|
-
delete?: ((name: string, value?: string) => void) | undefined;
|
|
4268
|
-
get?: ((name: string) => string | null) | undefined;
|
|
4269
|
-
getAll?: ((name: string) => string[]) | undefined;
|
|
4270
|
-
has?: ((name: string, value?: string) => boolean) | undefined;
|
|
4271
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
4272
|
-
sort?: (() => void) | undefined;
|
|
4273
|
-
toString?: (() => string) | undefined;
|
|
4274
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any) => void) | undefined;
|
|
4275
|
-
} | null | undefined;
|
|
4276
|
-
signal?: {
|
|
4277
|
-
readonly aborted?: boolean | undefined;
|
|
4278
|
-
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
4279
|
-
readonly reason?: any;
|
|
4280
|
-
throwIfAborted?: (() => void) | undefined;
|
|
4281
|
-
addEventListener?: {
|
|
4282
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4283
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4284
|
-
} | undefined;
|
|
4285
|
-
removeEventListener?: {
|
|
4286
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4287
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4288
|
-
} | undefined;
|
|
4289
|
-
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
4290
|
-
} | undefined;
|
|
4291
|
-
} | undefined;
|
|
4292
|
-
flags?: {
|
|
4293
|
-
overrided?: boolean | undefined;
|
|
4294
|
-
restarted?: boolean | undefined;
|
|
4295
|
-
} | undefined;
|
|
4296
|
-
record?: {
|
|
4297
|
-
[x: string]: any;
|
|
4298
|
-
} | undefined;
|
|
4299
|
-
policy?: any;
|
|
4300
|
-
} | undefined;
|
|
2525
|
+
readonly policy: {
|
|
2526
|
+
readonly settings: VigorFetchPolicySettingsSchema<any>;
|
|
2527
|
+
};
|
|
4301
2528
|
}>>>;
|
|
4302
2529
|
/** Configures the fetch policy's middleware pipeline. */
|
|
4303
2530
|
middlewares<const N extends VigorDeepPartial<VigorFetchPolicyMiddlewaresSchema<T>>, R extends VigorFetchSchema<any>>(input: N | ((s: VigorFetchPolicyMiddlewares<T>) => VigorFetchPolicyMiddlewares<R>) | VigorFetchPolicyMiddlewares<R>): VigorFetch<VigorFetchIn<VigorDeepMerge<T, {
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
method?: VigorFetchOptions["method"] | VigorEmptyType;
|
|
4308
|
-
origin?: string | (symbol & {
|
|
4309
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
4310
|
-
}) | undefined;
|
|
4311
|
-
path?: readonly string[] | undefined;
|
|
4312
|
-
query?: readonly {
|
|
4313
|
-
[x: string]: VigorStringable | readonly VigorStringable[];
|
|
4314
|
-
}[] | undefined;
|
|
4315
|
-
hash?: string | undefined;
|
|
4316
|
-
headers?: {
|
|
4317
|
-
[x: string]: string | undefined;
|
|
4318
|
-
} | undefined;
|
|
4319
|
-
body?: string | object | (symbol & {
|
|
4320
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
4321
|
-
}) | {
|
|
4322
|
-
readonly locked?: boolean | undefined;
|
|
4323
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4324
|
-
getReader?: {
|
|
4325
|
-
(options: {
|
|
4326
|
-
mode: "byob";
|
|
4327
|
-
}): ReadableStreamBYOBReader;
|
|
4328
|
-
(): ReadableStreamDefaultReader<any>;
|
|
4329
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<any>;
|
|
4330
|
-
} | undefined;
|
|
4331
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, any>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4332
|
-
pipeTo?: ((destination: WritableStream<any>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4333
|
-
tee?: (() => [ReadableStream<any>, ReadableStream<any>]) | undefined;
|
|
4334
|
-
} | {
|
|
4335
|
-
readonly size?: number | undefined;
|
|
4336
|
-
readonly type?: string | undefined;
|
|
4337
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4338
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4339
|
-
slice?: ((start?: number, end?: number, contentType?: string) => Blob) | undefined;
|
|
4340
|
-
stream?: (() => ReadableStream<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4341
|
-
text?: (() => Promise<string>) | undefined;
|
|
4342
|
-
} | {
|
|
4343
|
-
readonly byteLength?: number | undefined;
|
|
4344
|
-
slice?: ((begin?: number, end?: number) => ArrayBuffer) | undefined;
|
|
4345
|
-
readonly maxByteLength?: number | undefined;
|
|
4346
|
-
readonly resizable?: boolean | undefined;
|
|
4347
|
-
resize?: ((newByteLength?: number) => void) | undefined;
|
|
4348
|
-
readonly detached?: boolean | undefined;
|
|
4349
|
-
transfer?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4350
|
-
transferToFixedLength?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4351
|
-
readonly [Symbol.toStringTag]?: "ArrayBuffer" | undefined;
|
|
4352
|
-
} | {
|
|
4353
|
-
readonly buffer?: {
|
|
4354
|
-
readonly byteLength?: number | undefined;
|
|
4355
|
-
slice?: ((begin?: number, end?: number) => ArrayBuffer) | undefined;
|
|
4356
|
-
readonly maxByteLength?: number | undefined;
|
|
4357
|
-
readonly resizable?: boolean | undefined;
|
|
4358
|
-
resize?: ((newByteLength?: number) => void) | undefined;
|
|
4359
|
-
readonly detached?: boolean | undefined;
|
|
4360
|
-
transfer?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4361
|
-
transferToFixedLength?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4362
|
-
readonly [Symbol.toStringTag]?: "ArrayBuffer" | undefined;
|
|
4363
|
-
} | undefined;
|
|
4364
|
-
readonly byteLength?: number | undefined;
|
|
4365
|
-
readonly byteOffset?: number | undefined;
|
|
4366
|
-
} | {
|
|
4367
|
-
append?: {
|
|
4368
|
-
(name: string, value: string | Blob): void;
|
|
4369
|
-
(name: string, value: string): void;
|
|
4370
|
-
(name: string, blobValue: Blob, filename?: string): void;
|
|
4371
|
-
} | undefined;
|
|
4372
|
-
delete?: ((name: string) => void) | undefined;
|
|
4373
|
-
get?: ((name: string) => FormDataEntryValue | null) | undefined;
|
|
4374
|
-
getAll?: ((name: string) => FormDataEntryValue[]) | undefined;
|
|
4375
|
-
has?: ((name: string) => boolean) | undefined;
|
|
4376
|
-
set?: {
|
|
4377
|
-
(name: string, value: string | Blob): void;
|
|
4378
|
-
(name: string, value: string): void;
|
|
4379
|
-
(name: string, blobValue: Blob, filename?: string): void;
|
|
4380
|
-
} | undefined;
|
|
4381
|
-
forEach?: ((callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any) => void) | undefined;
|
|
4382
|
-
} | {
|
|
4383
|
-
readonly size?: number | undefined;
|
|
4384
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
4385
|
-
delete?: ((name: string, value?: string) => void) | undefined;
|
|
4386
|
-
get?: ((name: string) => string | null) | undefined;
|
|
4387
|
-
getAll?: ((name: string) => string[]) | undefined;
|
|
4388
|
-
has?: ((name: string, value?: string) => boolean) | undefined;
|
|
4389
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
4390
|
-
sort?: (() => void) | undefined;
|
|
4391
|
-
toString?: (() => string) | undefined;
|
|
4392
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any) => void) | undefined;
|
|
4393
|
-
} | null | undefined;
|
|
4394
|
-
extra?: {
|
|
4395
|
-
cache?: RequestCache | undefined;
|
|
4396
|
-
credentials?: RequestCredentials | undefined;
|
|
4397
|
-
integrity?: string | undefined;
|
|
4398
|
-
keepalive?: boolean | undefined;
|
|
4399
|
-
mode?: RequestMode | undefined;
|
|
4400
|
-
redirect?: RequestRedirect | undefined;
|
|
4401
|
-
referrer?: string | undefined;
|
|
4402
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4403
|
-
priority?: RequestPriority | undefined;
|
|
4404
|
-
window?: null | undefined;
|
|
4405
|
-
} | undefined;
|
|
4406
|
-
settings?: {
|
|
4407
|
-
__brand?: VigorBrand<"Fetch", "Policy<Settings<Schema"> | undefined;
|
|
4408
|
-
retryHeaders?: readonly string[] | undefined;
|
|
4409
|
-
unretryStatus?: readonly number[] | undefined;
|
|
4410
|
-
maxRestarts?: number | undefined;
|
|
4411
|
-
default?: (symbol & {
|
|
4412
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
4413
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
4414
|
-
} | undefined;
|
|
4415
|
-
middlewares?: {
|
|
4416
|
-
__brand?: VigorBrand<"Fetch", "Policy<Middlewares<Schema"> | undefined;
|
|
4417
|
-
before?: readonly ({
|
|
4418
|
-
_mode?: "fluent" | undefined;
|
|
4419
|
-
func?: ((ctx: any) => void) | undefined;
|
|
4420
|
-
} | {
|
|
4421
|
-
_mode?: "intercept" | undefined;
|
|
4422
|
-
func?: ((ctx: any, api: Pick<VigorFetchPolicyMiddlewaresApi<any>, "throwError" | "setOptions" | "setHeaders" | "setBody">) => VigorFetchSchema<any>["context"] | Promise<VigorFetchSchema<any>["context"]>) | undefined;
|
|
4423
|
-
})[] | undefined;
|
|
4424
|
-
after?: readonly ({
|
|
4425
|
-
_mode?: "fluent" | undefined;
|
|
4426
|
-
func?: ((ctx: any) => void) | undefined;
|
|
4427
|
-
} | {
|
|
4428
|
-
_mode?: "intercept" | undefined;
|
|
4429
|
-
func?: ((ctx: any, api: Pick<VigorFetchPolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorFetchSchema<any>["context"] | Promise<VigorFetchSchema<any>["context"]>) | undefined;
|
|
4430
|
-
})[] | undefined;
|
|
4431
|
-
onResult?: readonly ({
|
|
4432
|
-
_mode?: "fluent" | undefined;
|
|
4433
|
-
func?: ((res: any) => VigorFetchSchema<any>["context"]["result"]) | undefined;
|
|
4434
|
-
} | {
|
|
4435
|
-
_mode?: "intercept" | undefined;
|
|
4436
|
-
func?: ((ctx: any, api: Pick<VigorFetchPolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorFetchSchema<any>["context"] | Promise<VigorFetchSchema<any>["context"]>) | undefined;
|
|
4437
|
-
})[] | undefined;
|
|
4438
|
-
onError?: readonly ({
|
|
4439
|
-
_mode?: "fluent" | undefined;
|
|
4440
|
-
func?: ((err: any) => void) | undefined;
|
|
4441
|
-
} | {
|
|
4442
|
-
_mode?: "intercept" | undefined;
|
|
4443
|
-
func?: ((ctx: any, api: Pick<VigorFetchPolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorFetchSchema<any>["context"] | Promise<VigorFetchSchema<any>["context"]>) | undefined;
|
|
4444
|
-
})[] | undefined;
|
|
4445
|
-
} | undefined;
|
|
4446
|
-
retry?: {
|
|
4447
|
-
__brand?: VigorBrand<"Retry", "Schema"> | undefined;
|
|
4448
|
-
policy?: {
|
|
4449
|
-
__brand?: VigorBrand<"Retry", "Policy<Schema"> | undefined;
|
|
4450
|
-
target?: (symbol & {
|
|
4451
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
4452
|
-
}) | ((signal: AbortSignal) => any | Promise<any>) | undefined;
|
|
4453
|
-
abortSignals?: readonly {
|
|
4454
|
-
readonly aborted?: boolean | undefined;
|
|
4455
|
-
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
4456
|
-
readonly reason?: any;
|
|
4457
|
-
throwIfAborted?: (() => void) | undefined;
|
|
4458
|
-
addEventListener?: {
|
|
4459
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4460
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4461
|
-
} | undefined;
|
|
4462
|
-
removeEventListener?: {
|
|
4463
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4464
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4465
|
-
} | undefined;
|
|
4466
|
-
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
4467
|
-
}[] | undefined;
|
|
4468
|
-
settings?: {
|
|
4469
|
-
__brand?: VigorBrand<"Retry", "Policy<Settings<Schema"> | undefined;
|
|
4470
|
-
default?: (symbol & {
|
|
4471
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
4472
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
4473
|
-
maxAttempts?: number | undefined;
|
|
4474
|
-
maxRestarts?: number | undefined;
|
|
4475
|
-
timeout?: number | undefined;
|
|
4476
|
-
} | undefined;
|
|
4477
|
-
middlewares?: {
|
|
4478
|
-
__brand?: VigorBrand<"Retry", "Policy<Middlewares<Schema"> | undefined;
|
|
4479
|
-
before?: readonly ({
|
|
4480
|
-
_mode?: "fluent" | undefined;
|
|
4481
|
-
func?: ((ctx: any) => void) | undefined;
|
|
4482
|
-
} | {
|
|
4483
|
-
_mode?: "intercept" | undefined;
|
|
4484
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "abort" | "throwError" | "breakRetry">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
4485
|
-
})[] | undefined;
|
|
4486
|
-
after?: readonly ({
|
|
4487
|
-
_mode?: "fluent" | undefined;
|
|
4488
|
-
func?: ((ctx: any) => void) | undefined;
|
|
4489
|
-
} | {
|
|
4490
|
-
_mode?: "intercept" | undefined;
|
|
4491
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
4492
|
-
})[] | undefined;
|
|
4493
|
-
onResult?: readonly ({
|
|
4494
|
-
_mode?: "fluent" | undefined;
|
|
4495
|
-
func?: ((res: any) => VigorRetrySchema<any>["context"]["result"]) | undefined;
|
|
4496
|
-
} | {
|
|
4497
|
-
_mode?: "intercept" | undefined;
|
|
4498
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
4499
|
-
})[] | undefined;
|
|
4500
|
-
retryIf?: readonly ({
|
|
4501
|
-
_mode?: "fluent" | undefined;
|
|
4502
|
-
func?: ((err: any) => VigorRetrySchema<any>["context"]["flags"]["doRetry"]) | undefined;
|
|
4503
|
-
} | {
|
|
4504
|
-
_mode?: "intercept" | undefined;
|
|
4505
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "proceedRetry" | "cancelRetry">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
4506
|
-
})[] | undefined;
|
|
4507
|
-
onRetry?: readonly ({
|
|
4508
|
-
_mode?: "fluent" | undefined;
|
|
4509
|
-
func?: ((err: any) => void) | undefined;
|
|
4510
|
-
} | {
|
|
4511
|
-
_mode?: "intercept" | undefined;
|
|
4512
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setDelay">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
4513
|
-
})[] | undefined;
|
|
4514
|
-
onError?: readonly ({
|
|
4515
|
-
_mode?: "fluent" | undefined;
|
|
4516
|
-
func?: ((err: any) => void) | undefined;
|
|
4517
|
-
} | {
|
|
4518
|
-
_mode?: "intercept" | undefined;
|
|
4519
|
-
func?: ((ctx: any, api: Pick<VigorRetryPolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorRetrySchema<any>["context"] | Promise<VigorRetrySchema<any>["context"]>) | undefined;
|
|
4520
|
-
})[] | undefined;
|
|
4521
|
-
} | undefined;
|
|
4522
|
-
algorithms?: {
|
|
4523
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Constant<Schema"> | undefined;
|
|
4524
|
-
_tag?: "constant" | undefined;
|
|
4525
|
-
jitter?: number | undefined;
|
|
4526
|
-
interval?: number | undefined;
|
|
4527
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsConstantSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
4528
|
-
} | {
|
|
4529
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Linear<Schema"> | undefined;
|
|
4530
|
-
_tag?: "linear" | undefined;
|
|
4531
|
-
jitter?: number | undefined;
|
|
4532
|
-
initial?: number | undefined;
|
|
4533
|
-
increment?: number | undefined;
|
|
4534
|
-
minDelay?: number | undefined;
|
|
4535
|
-
maxDelay?: number | undefined;
|
|
4536
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsLinearSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
4537
|
-
} | {
|
|
4538
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Backoff<Schema"> | undefined;
|
|
4539
|
-
_tag?: "backoff" | undefined;
|
|
4540
|
-
jitter?: number | undefined;
|
|
4541
|
-
initial?: number | undefined;
|
|
4542
|
-
multiplier?: number | undefined;
|
|
4543
|
-
unit?: number | undefined;
|
|
4544
|
-
minDelay?: number | undefined;
|
|
4545
|
-
maxDelay?: number | undefined;
|
|
4546
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsBackoffSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
4547
|
-
} | {
|
|
4548
|
-
__brand?: VigorBrand<"Retry", "Policy<Algorithms<Custom<Schema"> | undefined;
|
|
4549
|
-
_tag?: "custom" | undefined;
|
|
4550
|
-
jitter?: number | undefined;
|
|
4551
|
-
minDelay?: number | undefined;
|
|
4552
|
-
maxDelay?: number | undefined;
|
|
4553
|
-
target?: (symbol & {
|
|
4554
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
4555
|
-
}) | ((att: number) => number) | undefined;
|
|
4556
|
-
_calculateDelay?: (((att: number, config: VigorRetryPolicyAlgorithmsCustomSchema<any>) => number) & ((att: number, config: any) => number)) | undefined;
|
|
4557
|
-
} | undefined;
|
|
4558
|
-
} | undefined;
|
|
4559
|
-
context?: {
|
|
4560
|
-
__brand?: VigorBrand<"Retry", "Context<Schema"> | undefined;
|
|
4561
|
-
result?: (symbol & {
|
|
4562
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4563
|
-
}) | undefined;
|
|
4564
|
-
error?: unknown;
|
|
4565
|
-
system?: {
|
|
4566
|
-
delay?: number | (symbol & {
|
|
4567
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4568
|
-
}) | undefined;
|
|
4569
|
-
attempt?: number | undefined;
|
|
4570
|
-
} | undefined;
|
|
4571
|
-
flags?: {
|
|
4572
|
-
doRetry?: boolean | undefined;
|
|
4573
|
-
doRestart?: boolean | undefined;
|
|
4574
|
-
brokeRetry?: boolean | undefined;
|
|
4575
|
-
overridden?: boolean | undefined;
|
|
4576
|
-
} | undefined;
|
|
4577
|
-
record?: {
|
|
4578
|
-
[x: string]: any;
|
|
4579
|
-
} | undefined;
|
|
4580
|
-
policy?: any;
|
|
4581
|
-
} | undefined;
|
|
4582
|
-
} | undefined;
|
|
4583
|
-
parse?: {
|
|
4584
|
-
__brand?: VigorBrand<"Parse", "Schema"> | undefined;
|
|
4585
|
-
policy?: {
|
|
4586
|
-
__brand?: VigorBrand<"Parse", "Policy<Schema"> | undefined;
|
|
4587
|
-
target?: (symbol & {
|
|
4588
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
4648
|
-
readonly headers?: {
|
|
4649
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
4650
|
-
delete?: ((name: string) => void) | undefined;
|
|
4651
|
-
get?: ((name: string) => string | null) | undefined;
|
|
4652
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
4653
|
-
has?: ((name: string) => boolean) | undefined;
|
|
4654
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
4655
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
4656
|
-
} | undefined;
|
|
4657
|
-
readonly ok?: boolean | undefined;
|
|
4658
|
-
readonly redirected?: boolean | undefined;
|
|
4659
|
-
readonly status?: number | undefined;
|
|
4660
|
-
readonly statusText?: string | undefined;
|
|
4661
|
-
readonly type?: ResponseType | undefined;
|
|
4662
|
-
readonly url?: string | undefined;
|
|
4663
|
-
clone?: (() => Response) | undefined;
|
|
4664
|
-
readonly body?: {
|
|
4665
|
-
readonly locked?: boolean | undefined;
|
|
4666
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4667
|
-
getReader?: {
|
|
4668
|
-
(options: {
|
|
4669
|
-
mode: "byob";
|
|
4670
|
-
}): ReadableStreamBYOBReader;
|
|
4671
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
4672
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
4673
|
-
} | undefined;
|
|
4674
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4675
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4676
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
4677
|
-
} | null | undefined;
|
|
4678
|
-
readonly bodyUsed?: boolean | undefined;
|
|
4679
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4680
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
4681
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4682
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
4683
|
-
json?: (() => Promise<any>) | undefined;
|
|
4684
|
-
text?: (() => Promise<string>) | undefined;
|
|
4685
|
-
} | undefined;
|
|
4686
|
-
settings?: {
|
|
4687
|
-
__brand?: VigorBrand<"Parse", "Policy<Settings<Schema"> | undefined;
|
|
4688
|
-
raw?: boolean | undefined;
|
|
4689
|
-
default?: (symbol & {
|
|
4690
|
-
__brand: VigorBrand<"Core", "Symbol_Empty">;
|
|
4691
|
-
}) | ((ctx: any) => any | Promise<any>) | undefined;
|
|
4692
|
-
maxRestarts?: number | undefined;
|
|
4693
|
-
} | undefined;
|
|
4694
|
-
middlewares?: {
|
|
4695
|
-
__brand?: VigorBrand<"Parse", "Policy<Middlewares<Schema"> | undefined;
|
|
4696
|
-
before?: readonly ({
|
|
4697
|
-
_mode?: "fluent" | undefined;
|
|
4698
|
-
func?: ((ctx: any) => void) | undefined;
|
|
4699
|
-
} | {
|
|
4700
|
-
_mode?: "intercept" | undefined;
|
|
4701
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
4702
|
-
})[] | undefined;
|
|
4703
|
-
after?: readonly ({
|
|
4704
|
-
_mode?: "fluent" | undefined;
|
|
4705
|
-
func?: ((ctx: any) => void) | undefined;
|
|
4706
|
-
} | {
|
|
4707
|
-
_mode?: "intercept" | undefined;
|
|
4708
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
4709
|
-
})[] | undefined;
|
|
4710
|
-
onResult?: readonly ({
|
|
4711
|
-
_mode?: "fluent" | undefined;
|
|
4712
|
-
func?: ((res: any) => VigorParseSchema<any>["context"]["result"]) | undefined;
|
|
4713
|
-
} | {
|
|
4714
|
-
_mode?: "intercept" | undefined;
|
|
4715
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
4716
|
-
})[] | undefined;
|
|
4717
|
-
onError?: readonly ({
|
|
4718
|
-
_mode?: "fluent" | undefined;
|
|
4719
|
-
func?: ((err: any) => void) | undefined;
|
|
4720
|
-
} | {
|
|
4721
|
-
_mode?: "intercept" | undefined;
|
|
4722
|
-
func?: ((ctx: any, api: Pick<VigorParsePolicyMiddlewaresApi<any>, "throwError" | "setResult" | "proceedRestart" | "cancelRestart">) => VigorParseSchema<any>["context"] | Promise<VigorParseSchema<any>["context"]>) | undefined;
|
|
4723
|
-
})[] | undefined;
|
|
4724
|
-
} | undefined;
|
|
4725
|
-
strategies?: {
|
|
4726
|
-
__brand?: VigorBrand<"Parse", "Policy<Strategies<Schema"> | undefined;
|
|
4727
|
-
funcs?: readonly VigorParseStrategyFunc[] | undefined;
|
|
4728
|
-
} | undefined;
|
|
4729
|
-
} | undefined;
|
|
4730
|
-
context?: {
|
|
4731
|
-
__brand?: VigorBrand<"Parse", "Context<Schema"> | undefined;
|
|
4732
|
-
result?: unknown | VigorDefaultType;
|
|
4733
|
-
error?: unknown;
|
|
4734
|
-
response?: (symbol & {
|
|
4735
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
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
|
-
} | {
|
|
4795
|
-
readonly headers?: {
|
|
4796
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
4797
|
-
delete?: ((name: string) => void) | undefined;
|
|
4798
|
-
get?: ((name: string) => string | null) | undefined;
|
|
4799
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
4800
|
-
has?: ((name: string) => boolean) | undefined;
|
|
4801
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
4802
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
4803
|
-
} | undefined;
|
|
4804
|
-
readonly ok?: boolean | undefined;
|
|
4805
|
-
readonly redirected?: boolean | undefined;
|
|
4806
|
-
readonly status?: number | undefined;
|
|
4807
|
-
readonly statusText?: string | undefined;
|
|
4808
|
-
readonly type?: ResponseType | undefined;
|
|
4809
|
-
readonly url?: string | undefined;
|
|
4810
|
-
clone?: (() => Response) | undefined;
|
|
4811
|
-
readonly body?: {
|
|
4812
|
-
readonly locked?: boolean | undefined;
|
|
4813
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4814
|
-
getReader?: {
|
|
4815
|
-
(options: {
|
|
4816
|
-
mode: "byob";
|
|
4817
|
-
}): ReadableStreamBYOBReader;
|
|
4818
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
4819
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
4820
|
-
} | undefined;
|
|
4821
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4822
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4823
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
4824
|
-
} | null | undefined;
|
|
4825
|
-
readonly bodyUsed?: boolean | undefined;
|
|
4826
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4827
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
4828
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4829
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
4830
|
-
json?: (() => Promise<any>) | undefined;
|
|
4831
|
-
text?: (() => Promise<string>) | undefined;
|
|
4832
|
-
} | undefined;
|
|
4833
|
-
flags?: {
|
|
4834
|
-
overrided?: boolean | undefined;
|
|
4835
|
-
restarted?: boolean | undefined;
|
|
4836
|
-
} | undefined;
|
|
4837
|
-
record?: {
|
|
4838
|
-
[x: string]: any;
|
|
4839
|
-
} | undefined;
|
|
4840
|
-
policy?: any;
|
|
4841
|
-
} | undefined;
|
|
4842
|
-
} | undefined;
|
|
4843
|
-
} | undefined;
|
|
4844
|
-
context?: {
|
|
4845
|
-
__brand?: VigorBrand<"Fetch", "Context<Schema"> | undefined;
|
|
4846
|
-
href?: string | undefined;
|
|
4847
|
-
response?: (symbol & {
|
|
4848
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4849
|
-
}) | {
|
|
4850
|
-
readonly headers?: {
|
|
4851
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
4852
|
-
delete?: ((name: string) => void) | undefined;
|
|
4853
|
-
get?: ((name: string) => string | null) | undefined;
|
|
4854
|
-
getSetCookie?: (() => string[]) | undefined;
|
|
4855
|
-
has?: ((name: string) => boolean) | undefined;
|
|
4856
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
4857
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: Headers) => void, thisArg?: any) => void) | undefined;
|
|
4858
|
-
} | undefined;
|
|
4859
|
-
readonly ok?: boolean | undefined;
|
|
4860
|
-
readonly redirected?: boolean | undefined;
|
|
4861
|
-
readonly status?: number | undefined;
|
|
4862
|
-
readonly statusText?: string | undefined;
|
|
4863
|
-
readonly type?: ResponseType | undefined;
|
|
4864
|
-
readonly url?: string | undefined;
|
|
4865
|
-
clone?: (() => Response) | undefined;
|
|
4866
|
-
readonly body?: {
|
|
4867
|
-
readonly locked?: boolean | undefined;
|
|
4868
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4869
|
-
getReader?: {
|
|
4870
|
-
(options: {
|
|
4871
|
-
mode: "byob";
|
|
4872
|
-
}): ReadableStreamBYOBReader;
|
|
4873
|
-
(): ReadableStreamDefaultReader<Uint8Array<ArrayBuffer>>;
|
|
4874
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<Uint8Array<ArrayBuffer>>;
|
|
4875
|
-
} | undefined;
|
|
4876
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4877
|
-
pipeTo?: ((destination: WritableStream<Uint8Array<ArrayBuffer>>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4878
|
-
tee?: (() => [ReadableStream<Uint8Array<ArrayBuffer>>, ReadableStream<Uint8Array<ArrayBuffer>>]) | undefined;
|
|
4879
|
-
} | null | undefined;
|
|
4880
|
-
readonly bodyUsed?: boolean | undefined;
|
|
4881
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4882
|
-
blob?: (() => Promise<Blob>) | undefined;
|
|
4883
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4884
|
-
formData?: (() => Promise<FormData>) | undefined;
|
|
4885
|
-
json?: (() => Promise<any>) | undefined;
|
|
4886
|
-
text?: (() => Promise<string>) | undefined;
|
|
4887
|
-
} | undefined;
|
|
4888
|
-
result?: unknown | VigorDefaultType;
|
|
4889
|
-
error?: unknown;
|
|
4890
|
-
options?: (symbol & {
|
|
4891
|
-
__brand: VigorBrand<"Core", "Symbol_Default">;
|
|
4892
|
-
}) | {
|
|
4893
|
-
cache?: RequestCache | undefined;
|
|
4894
|
-
credentials?: RequestCredentials | undefined;
|
|
4895
|
-
integrity?: string | undefined;
|
|
4896
|
-
keepalive?: boolean | undefined;
|
|
4897
|
-
mode?: RequestMode | undefined;
|
|
4898
|
-
redirect?: RequestRedirect | undefined;
|
|
4899
|
-
referrer?: string | undefined;
|
|
4900
|
-
referrerPolicy?: ReferrerPolicy | undefined;
|
|
4901
|
-
priority?: RequestPriority | undefined;
|
|
4902
|
-
window?: null | undefined;
|
|
4903
|
-
method?: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS" | "CONNECT" | "TRACE" | undefined;
|
|
4904
|
-
headers?: {
|
|
4905
|
-
[x: string]: string | undefined;
|
|
4906
|
-
} | undefined;
|
|
4907
|
-
body?: string | {
|
|
4908
|
-
readonly locked?: boolean | undefined;
|
|
4909
|
-
cancel?: ((reason?: any) => Promise<void>) | undefined;
|
|
4910
|
-
getReader?: {
|
|
4911
|
-
(options: {
|
|
4912
|
-
mode: "byob";
|
|
4913
|
-
}): ReadableStreamBYOBReader;
|
|
4914
|
-
(): ReadableStreamDefaultReader<any>;
|
|
4915
|
-
(options?: ReadableStreamGetReaderOptions): ReadableStreamReader<any>;
|
|
4916
|
-
} | undefined;
|
|
4917
|
-
pipeThrough?: (<T_1>(transform: ReadableWritablePair<T_1, any>, options?: StreamPipeOptions) => ReadableStream<T_1>) | undefined;
|
|
4918
|
-
pipeTo?: ((destination: WritableStream<any>, options?: StreamPipeOptions) => Promise<void>) | undefined;
|
|
4919
|
-
tee?: (() => [ReadableStream<any>, ReadableStream<any>]) | undefined;
|
|
4920
|
-
} | {
|
|
4921
|
-
readonly size?: number | undefined;
|
|
4922
|
-
readonly type?: string | undefined;
|
|
4923
|
-
arrayBuffer?: (() => Promise<ArrayBuffer>) | undefined;
|
|
4924
|
-
bytes?: (() => Promise<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4925
|
-
slice?: ((start?: number, end?: number, contentType?: string) => Blob) | undefined;
|
|
4926
|
-
stream?: (() => ReadableStream<Uint8Array<ArrayBuffer>>) | undefined;
|
|
4927
|
-
text?: (() => Promise<string>) | undefined;
|
|
4928
|
-
} | {
|
|
4929
|
-
readonly byteLength?: number | undefined;
|
|
4930
|
-
slice?: ((begin?: number, end?: number) => ArrayBuffer) | undefined;
|
|
4931
|
-
readonly maxByteLength?: number | undefined;
|
|
4932
|
-
readonly resizable?: boolean | undefined;
|
|
4933
|
-
resize?: ((newByteLength?: number) => void) | undefined;
|
|
4934
|
-
readonly detached?: boolean | undefined;
|
|
4935
|
-
transfer?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4936
|
-
transferToFixedLength?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4937
|
-
readonly [Symbol.toStringTag]?: "ArrayBuffer" | undefined;
|
|
4938
|
-
} | {
|
|
4939
|
-
readonly buffer?: {
|
|
4940
|
-
readonly byteLength?: number | undefined;
|
|
4941
|
-
slice?: ((begin?: number, end?: number) => ArrayBuffer) | undefined;
|
|
4942
|
-
readonly maxByteLength?: number | undefined;
|
|
4943
|
-
readonly resizable?: boolean | undefined;
|
|
4944
|
-
resize?: ((newByteLength?: number) => void) | undefined;
|
|
4945
|
-
readonly detached?: boolean | undefined;
|
|
4946
|
-
transfer?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4947
|
-
transferToFixedLength?: ((newByteLength?: number) => ArrayBuffer) | undefined;
|
|
4948
|
-
readonly [Symbol.toStringTag]?: "ArrayBuffer" | undefined;
|
|
4949
|
-
} | undefined;
|
|
4950
|
-
readonly byteLength?: number | undefined;
|
|
4951
|
-
readonly byteOffset?: number | undefined;
|
|
4952
|
-
} | {
|
|
4953
|
-
append?: {
|
|
4954
|
-
(name: string, value: string | Blob): void;
|
|
4955
|
-
(name: string, value: string): void;
|
|
4956
|
-
(name: string, blobValue: Blob, filename?: string): void;
|
|
4957
|
-
} | undefined;
|
|
4958
|
-
delete?: ((name: string) => void) | undefined;
|
|
4959
|
-
get?: ((name: string) => FormDataEntryValue | null) | undefined;
|
|
4960
|
-
getAll?: ((name: string) => FormDataEntryValue[]) | undefined;
|
|
4961
|
-
has?: ((name: string) => boolean) | undefined;
|
|
4962
|
-
set?: {
|
|
4963
|
-
(name: string, value: string | Blob): void;
|
|
4964
|
-
(name: string, value: string): void;
|
|
4965
|
-
(name: string, blobValue: Blob, filename?: string): void;
|
|
4966
|
-
} | undefined;
|
|
4967
|
-
forEach?: ((callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any) => void) | undefined;
|
|
4968
|
-
} | {
|
|
4969
|
-
readonly size?: number | undefined;
|
|
4970
|
-
append?: ((name: string, value: string) => void) | undefined;
|
|
4971
|
-
delete?: ((name: string, value?: string) => void) | undefined;
|
|
4972
|
-
get?: ((name: string) => string | null) | undefined;
|
|
4973
|
-
getAll?: ((name: string) => string[]) | undefined;
|
|
4974
|
-
has?: ((name: string, value?: string) => boolean) | undefined;
|
|
4975
|
-
set?: ((name: string, value: string) => void) | undefined;
|
|
4976
|
-
sort?: (() => void) | undefined;
|
|
4977
|
-
toString?: (() => string) | undefined;
|
|
4978
|
-
forEach?: ((callbackfn: (value: string, key: string, parent: URLSearchParams) => void, thisArg?: any) => void) | undefined;
|
|
4979
|
-
} | null | undefined;
|
|
4980
|
-
signal?: {
|
|
4981
|
-
readonly aborted?: boolean | undefined;
|
|
4982
|
-
onabort?: ((this: AbortSignal, ev: Event) => any) | null | undefined;
|
|
4983
|
-
readonly reason?: any;
|
|
4984
|
-
throwIfAborted?: (() => void) | undefined;
|
|
4985
|
-
addEventListener?: {
|
|
4986
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
4987
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
4988
|
-
} | undefined;
|
|
4989
|
-
removeEventListener?: {
|
|
4990
|
-
<K extends keyof AbortSignalEventMap>(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
4991
|
-
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
4992
|
-
} | undefined;
|
|
4993
|
-
dispatchEvent?: ((event: Event) => boolean) | undefined;
|
|
4994
|
-
} | undefined;
|
|
4995
|
-
} | undefined;
|
|
4996
|
-
flags?: {
|
|
4997
|
-
overrided?: boolean | undefined;
|
|
4998
|
-
restarted?: boolean | undefined;
|
|
4999
|
-
} | undefined;
|
|
5000
|
-
record?: {
|
|
5001
|
-
[x: string]: any;
|
|
5002
|
-
} | undefined;
|
|
5003
|
-
policy?: any;
|
|
5004
|
-
} | undefined;
|
|
2531
|
+
readonly policy: {
|
|
2532
|
+
readonly middlewares: VigorFetchPolicyMiddlewaresSchema<any>;
|
|
2533
|
+
};
|
|
5005
2534
|
}>>>;
|
|
5006
2535
|
/** Configures the retry engine used to send the underlying request. */
|
|
5007
2536
|
retry<const N extends VigorDeepPartial<VigorRetrySchema<any>>, R extends VigorRetrySchema<any>>(input: N | ((r: VigorRetry) => VigorRetry<R>) | VigorRetry<R>): VigorFetch<VigorFetchIn<VigorDeepMerge<T, {
|
|
@@ -7689,9 +5218,11 @@ declare const VigorRetryErrorMessageFuncs: {
|
|
|
7689
5218
|
}) => string;
|
|
7690
5219
|
readonly RETRY_EXHAUSTED: ({ maxAttempts }: {
|
|
7691
5220
|
maxAttempts: number;
|
|
5221
|
+
error: unknown;
|
|
7692
5222
|
}) => string;
|
|
7693
5223
|
readonly RESTART_EXHAUSTED: ({ maxAttempts }: {
|
|
7694
5224
|
maxAttempts: number;
|
|
5225
|
+
error: unknown;
|
|
7695
5226
|
}) => string;
|
|
7696
5227
|
readonly TIMED_OUT: ({ limit }: {
|
|
7697
5228
|
limit: number;
|
|
@@ -7724,6 +5255,7 @@ declare const VigorParseErrorMessageFuncs: {
|
|
|
7724
5255
|
}) => string;
|
|
7725
5256
|
readonly RESTART_EXHAUSTED: ({ maxAttempts }: {
|
|
7726
5257
|
maxAttempts: number;
|
|
5258
|
+
error: unknown;
|
|
7727
5259
|
}) => string;
|
|
7728
5260
|
};
|
|
7729
5261
|
type VigorParseErrorCodes = keyof typeof VigorParseErrorMessageFuncs;
|
|
@@ -7757,6 +5289,7 @@ declare const VigorFetchErrorMessageFuncs: {
|
|
|
7757
5289
|
}) => string;
|
|
7758
5290
|
readonly RESTART_EXHAUSTED: ({ maxAttempts }: {
|
|
7759
5291
|
maxAttempts: number;
|
|
5292
|
+
error: unknown;
|
|
7760
5293
|
}) => string;
|
|
7761
5294
|
};
|
|
7762
5295
|
type VigorFetchErrorCodes = keyof typeof VigorFetchErrorMessageFuncs;
|