@fly/cdn
Version:
Fly's TypeScript CDN
22 lines (21 loc) • 639 B
TypeScript
/**
* @module Backends
*/
import { ProxyFunction } from "../proxy";
import { SubdomainOptions } from "./subdomain_service";
/**
* Creates a `fetch` like function for proxying requests to hosted Netlify sites.
*
* Example:
* ```typescript
* import { netlify } from "./src/backends";
* const backend = netlify({
* subdomain: "example"
* });
* ```
* @param options Netlify site information. Accepts subdomain as a string.
*/
export declare function netlify(options: SubdomainOptions | string): ProxyFunction<SubdomainOptions>;
export declare namespace netlify {
var normalizeOptions: (input: unknown) => SubdomainOptions;
}