@wwdrew/expo-spotify-sdk
Version:
Expo module wrapping the native Spotify iOS (v5) and Android (v4) SDKs for OAuth authentication and App Remote playback control
12 lines • 480 B
TypeScript
import type { SpotifyError } from "../error";
export interface NativeErrorRethrowOptions<C extends string, E extends SpotifyError & {
code: C;
}> {
ErrorClass: new (code: C, message: string) => E;
validCodes: ReadonlySet<C>;
unknownCode: C;
}
export declare function createNativeErrorRethrow<C extends string, E extends SpotifyError & {
code: C;
}>(options: NativeErrorRethrowOptions<C, E>): (err: unknown) => never;
//# sourceMappingURL=native-errors.d.ts.map