UNPKG

@technobuddha/library

Version:
18 lines (17 loc) 611 B
declare type Options = { /** The opening field delimiter */ open?: string; /** The closing field delimiter */ close?: string; }; /** * Fill a template with supplies values * @param input The template * @param values A dictionary of name-values used to fill in values in the template * @param __namedParameters see {@link Options} * @default open '{{' * @default close (default '}}') * @return template with values replaced */ export declare function fillTemplate(input: string, values: Record<string, string | undefined>, { open, close }?: Options): string; export default fillTemplate;