UNPKG

@microbitsclub/microbits-client

Version:
15 lines (14 loc) 445 B
import fetch from 'cross-fetch'; import { LogLevel } from './logging'; export declare const DEFAULTS: { MICROBITS_URL: import("./url").Url; USER_SESSION_COOKIE: string; MERCHANT_ROUTE_PREFIX: string; }; export interface MicrobitsClientConfig { merchantId: string; apiKey?: string; microbitsRoutePrefix?: string; fetchFunction?: typeof fetch; logging?: true | ((level: keyof LogLevel, message: string) => void); }