File

src/modules/input-mask-directives/directives/timestamp-mask-config.intf.ts

Description

Defines the configuration for the StarkTimestampMaskDirective.

Index

Properties

Properties

format
format: string
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";
}

results matching ""

    No results matching ""