polen
Version:
A framework for delightful GraphQL developer portals
20 lines • 750 B
TypeScript
/**
* Helper functions for generating asset URLs that respect the base path configuration.
*/
/**
* Join a base path with an asset path, handling leading/trailing slashes correctly.
*/
export declare const joinPaths: (base: string, path: string) => string;
/**
* Create an asset URL from a path, respecting the base configuration.
*/
export declare const assetUrl: (path: string, base: string) => string;
/**
* Create a favicon URL from a path, respecting the base configuration.
*/
export declare const faviconUrl: (path: string, base: string) => string;
/**
* Create a page URL from a path, respecting the base configuration.
*/
export declare const pageUrl: (path: string, base: string) => string;
//# sourceMappingURL=asset-url.d.ts.map