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

Function normalizeError

src/endpoint.ts:21–26  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

19}
20
21const normalizeError = (error: unknown) => {
22 if (error instanceof Error) {
23 return error;
24 }
25 return new Error(String(error));
26};
27
28export const dedupeEndpoints = (
29 endpoints: Array<string | null | undefined>,

Callers 2

executeEndpointFallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected