@pdfme/schemas
Version:
TypeScript base PDF generator and React base UI. Open source, developed by the community, and completely free to use under the MIT license!
5 lines (4 loc) • 470 B
TypeScript
import { MultiVariableTextSchema } from './types.js';
export declare const substituteVariables: (text: string, variablesIn: string | Record<string, string>, valueMapper?: (value: string, variableName: string) => string) => string;
export declare const substituteVariablesAsInlineMarkdownLiterals: (text: string, variablesIn: string | Record<string, string>) => string;
export declare const validateVariables: (value: string, schema: MultiVariableTextSchema) => boolean;