@swarmion/serverless-contracts
Version:
Generate and use type-safe contracts between your Serverless services.
12 lines • 479 B
TypeScript
/**
* Fills a string template with values.
*
* The keys to be replaced must be passed in `{}` in the template. For example `"/users/{userId}"`";
* The key name must match the one passed in the curly braces
*
* @param template the template to be fill;
* @param values the values to fill;
* @returns the filled template.
*/
export declare const fillPathTemplate: (template: string, values?: Record<string, string>) => string;
//# sourceMappingURL=fillPathTemplate.d.ts.map