UNPKG

@fly/cdn

Version:
31 lines (30 loc) 774 B
/** * @module Backends */ import { ProxyFunction } from "../proxy"; import { SubdomainOptions } from "./subdomain_service"; /** * Glitch configugration. */ export interface GlitchOptions { /** Glitch application name: <appName>.glitch.me */ appName: string; } /** * Creates a `fetch` like function for proxying requests to Glitch apps. * * Example: * ```typescript * import { glitch } from "./src/backends"; * * const backend = glitch({ * appName: "fly-example" * }) * ``` * * @param options Glitch app information. Accepts `appName` as a string. */ export declare function glitch(options: GlitchOptions | string): ProxyFunction<SubdomainOptions>; export declare namespace glitch { var normalizeOptions: (input: unknown) => SubdomainOptions; }