UNPKG

603 BTypeScriptView Raw
1export declare function a_sume<T>(fn: () => Promise<T>, throws: (e: Error) => Error): Promise<T>;
2export declare function s_sume<T>(fn: () => T, throws: (e: Error) => Error): T;
3export declare function filenameOutsideFabLocations(filename: string): boolean;
4export declare function getContentType(pathname: string): string;
5export declare function getCacheHeaders(immutable: boolean): {
6 'cache-control': string;
7};
8export declare function matchPath<T>(lookup_table: {
9 [pathname: string]: T;
10}, _pathname: string): T | undefined;
11export declare const stripTrailingSlash: (str: string) => string;