MCPcopy Create free account
hub / github.com/reactnativecn/react-native-update / ExecuteEndpointFallbackOptions

Interface ExecuteEndpointFallbackOptions

src/endpoint.ts:12–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10}
11
12export interface ExecuteEndpointFallbackOptions<T> {
13 configuredEndpoints: string[];
14 getRemoteEndpoints?: () => Promise<string[]>;
15 tryEndpoint: (endpoint: string) => Promise<T>;
16 random?: () => number;
17 now?: () => number;
18 onFirstFailure?: (failure: EndpointAttemptFailure) => void | Promise<void>;
19}
20
21const normalizeError = (error: unknown) => {
22 if (error instanceof Error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected