UNPKG

@data-client/rest

Version:

Quickly define typed REST resources and endpoints

8 lines (7 loc) 425 B
import { PathFunction } from 'path-to-regexp'; import { ShortenPath } from './pathTypes.js'; export declare function getUrlBase(path: string): PathFunction; export declare function getUrlTokens(path: string): Set<string>; 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