UNPKG

telefunc

Version:

Remote functions. Instead of API.

25 lines (24 loc) 752 B
export { configUser as config }; export { resolveClientConfig }; /** Telefunc Client Configuration */ type ConfigUser = { /** * The Telefunc HTTP endpoint URL, for example `https://example.org/_telefunc`. * * @default /_telefunc * * https://telefunc.com/telefuncUrl */ telefuncUrl?: string; /** Additional headers sent along Telefunc HTTP requests */ httpHeaders?: Record<string, string>; /** Custom fetch implementations */ fetch?: typeof globalThis.fetch; }; type ConfigResolved = { telefuncUrl: string; httpHeaders: Record<string, string> | null; fetch: typeof globalThis.fetch | null; }; declare const configUser: ConfigUser; declare function resolveClientConfig(): ConfigResolved;