@alexaegis/common
Version:
Common utility functions
9 lines • 525 B
TypeScript
import { SimpleObjectKey } from './struct.type.js';
/**
* Maps and fills a single string value in an object based on a variableMap.
*
* If the target object has a string value containing `"${variableName}"`, the
* corresponding value from the variableMap will be substitued into it.
*/
export declare const fillStringWithTemplateVariables: <VariableKeys extends SimpleObjectKey>(value: string, variables: Record<VariableKeys, string>) => string;
//# sourceMappingURL=fill-string-with-template-variables.function.d.ts.map