UNPKG

dilswer

Version:

Blazingly fast data validation library with TypeScript integration.

17 lines (16 loc) 362 B
// src/ts-type-generator/template-builder.ts var TemplateBuilder = class { constructor(template) { this.template = template; } build(wildcards) { let result = this.template; for (const [key, value] of Object.entries(wildcards)) { result = result.replace(`{{${key}}}`, value); } return result; } }; export { TemplateBuilder };