UNPKG

@impler/shared

Version:

Reusable types and classes to shared between apps and libraries

14 lines 1.22 kB
export declare function createRecordFormat(variables: string[], extraParams?: Record<string, string | number>): string; export declare function updateCombinedFormat(format: string, variables: string[]): string; export declare function createVariable(name: string): string; export declare function replaceVariableInStringWithKey(str: string, key: string, value: any): string; export declare function replaceVariableInString(str: string, record: Record<string, string | number>): string | number; export declare function replaceVariable(formatKey: unknown, key: string, value: any, record: Record<string, string | number>): any; export declare function replaceVariablesInObject(format: Record<string, unknown>, record: Record<string, string | number>, defaultValues?: Record<string, string | number>): Record<string, string>; export declare function updateDefaultValues(record: Record<string, string | number>, defaultValues?: Record<string, string | number>): Record<string, string | number>; export declare function validateVariable(name: string): boolean; export declare function getRecordFormat(chunkFormat: string): { recordFormat: string; chunkFormat: string; }; //# sourceMappingURL=output.helpers.d.ts.map