UNPKG

@fly/cdn

Version:
24 lines (23 loc) 719 B
/** * @module Backends */ import { ProxyFunction } from "../proxy"; import { SubdomainOptions } from "./subdomain_service"; /** * Creates a `fetch` like function for proxying requests to hosted Squarespace. * * Example: * ```typescript * import { squarespace } from "./src/backends"; * const backend = squarespace({ * subdomain: "archmotorcycle", * directory: "/", * hostname: "www.archmotorcycle.com" * }); * ``` * @param options SquareSpace information. Accepts subdomain as a string. */ export declare function squarespace(options: SubdomainOptions | string): ProxyFunction<SubdomainOptions>; export declare namespace squarespace { var normalizeOptions: (input: unknown) => SubdomainOptions; }