moh-common-lib
Version:
A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).
17 lines (16 loc) • 559 B
TypeScript
/**
* In most cases this will be the part of the error message that will appear after the field label.
*
* {{label}} is required.
*
* Date component will subsitute '{label}' for the label in the component.
* Ex. { required: '{label} is required.' }
*
* Note: '{label}' is exported in constant 'LabelReplacementTag'.
*/
export declare const LabelReplacementTag = "{label}";
export interface ErrorMessage {
required?: string;
[key: string]: string;
}
export declare function replaceLabelTag(str: string, value: string): string;