UNPKG

rfc6570-expand

Version:

A template processor for RFC 6570 URI Template

30 lines (29 loc) 628 B
export declare type Operator = { key: string; first: string; sep: string; named: boolean; ifemp: string; allow: (s: string) => string; }; export declare type VarSpec = { varName: string; maxLength?: number; explode: boolean; }; declare const expressionParser: () => (s: string) => { operator: { key: string; first: string; sep: string; named: boolean; ifemp: string; allow: (s: string) => string; }; varSpecs: { varName: string; maxLength?: number; explode: boolean; }[]; }; export { expressionParser };