Namespace: dateUtil
@atomic-testing/core.dateUtil
Interfaces
Type Aliases
DateValidationResult
Ƭ DateValidationResult: DateValidationSuccessResult
| DateValidationFailureResult
Defined in
packages/core/src/utils/dateUtil.ts:84
HtmlInputDateType
Ƭ HtmlInputDateType: typeof htmlInputDateTypes
[number
]
Defined in
packages/core/src/utils/dateUtil.ts:43
Variables
htmlInputDateTypes
• Const
htmlInputDateTypes: readonly string
[]
Supported html input date types
Defined in
packages/core/src/utils/dateUtil.ts:42
Functions
isHtmlDateInputType
▸ isHtmlDateInputType(type
): type is string
Parameters
Name | Type |
---|---|
type | string |
Returns
type is string
Defined in
packages/core/src/utils/dateUtil.ts:86
isHtmlInputDateFormat
▸ isHtmlInputDateFormat(input
): boolean
Parameters
Name | Type |
---|---|
input | string |
Returns
boolean
Defined in
packages/core/src/utils/dateUtil.ts:4
isHtmlInputDateTimeFormat
▸ isHtmlInputDateTimeFormat(input
): boolean
Whether the input is in the format of an HTML input datetime-local.
Parameters
Name | Type |
---|---|
input | string |
Returns
boolean
Defined in
packages/core/src/utils/dateUtil.ts:30
isHtmlInputTimeFormat
▸ isHtmlInputTimeFormat(input
): boolean
Parameters
Name | Type |
---|---|
input | string |
Returns
boolean
Defined in
packages/core/src/utils/dateUtil.ts:21
validateHtmlDateInput
▸ validateHtmlDateInput(type
, input
): DateValidationResult
Parameters
Name | Type |
---|---|
type | string |
input | string |