src/modules/input-mask-directives/directives/timestamp-mask-config.intf.ts
Defines the configuration for the StarkTimestampMaskDirective.
Properties |
format |
format:
|
Type : string
|
Format of the date and/or time. For example: "DD-MM-YYYY hh:mm:ss" |
export interface StarkTimestampMaskConfig {
/**
* Format of the date and/or time. For example: "DD-MM-YYYY hh:mm:ss"
*/
format: string;
}
/**
* Type guard for {StarkTimestampMaskConfig|StarkTimestampMaskConfig}
* @param config - Config to validate
*/
export function isStarkTimestampMaskConfig(config: any): config is StarkTimestampMaskConfig {
return config && typeof config.format === "string";
}