UNPKG

@fly/cdn

Version:
24 lines (23 loc) 701 B
/** * @module Backends */ import { ProxyFunction } from "../proxy"; import { SubdomainOptions } from "./subdomain_service"; /** * Creates a `fetch` like function for proxying requests to hosted Ghost Pro blogs. * * Example: * ```typescript * import { ghost } from "./src/backends"; * const backend = ghost({ * subdomain: "fly-io", * directory: "/articles/", * hostname: "fly.io" * }); * ``` * @param options Ghost Pro blog information. Accepts subdomain as a string. */ export declare function ghostProBlog(options: SubdomainOptions | string): ProxyFunction<SubdomainOptions>; export declare namespace ghostProBlog { var normalizeOptions: (input: unknown) => SubdomainOptions; }