@data-client/rest
Version:
Quickly define typed REST resources and endpoints
9 lines (8 loc) • 511 B
TypeScript
import { PathFunction, ParamData } from './pathToRegexp.js';
import { ShortenPath } from './pathTypes.js';
export declare function getUrlBase(path: string): PathFunction<ParamData>;
export declare function getUrlTokens(path: string): Set<string>;
export declare function getPathRegex(path: string): RegExp;
export declare function isPojo(obj: unknown): obj is Record<string, any>;
export declare function shortenPath<S extends string>(path: S): ShortenPath<S>;
//# sourceMappingURL=RestHelpers.d.ts.map