BUPKIS
API
Assertions
Preparing search index...
bupkis
assertions
SyncDateAssertions
Variable SyncDateAssertions
Const
SyncDateAssertions
:
readonly
[
AssertionFunctionSync
<
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
"to be after"
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
]
,
(
subject
:
string
|
number
|
Date
,
other
:
string
|
number
|
Date
,
)
=>
|
{
message
:
string
;
schema
?:
undefined
;
subject
?:
undefined
}
|
{
message
?:
undefined
;
schema
:
ZodDate
;
subject
:
Date
}
,
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
PhraseLiteralSlot
<
"to be after"
>
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
]
,
>
,
AssertionFunctionSync
<
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
"to be before"
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
]
,
(
subject
:
string
|
number
|
Date
,
other
:
string
|
number
|
Date
,
)
=>
|
{
message
:
string
;
schema
?:
undefined
;
subject
?:
undefined
}
|
{
message
?:
undefined
;
schema
:
ZodDate
;
subject
:
Date
}
,
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
PhraseLiteralSlot
<
"to be before"
>
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
]
,
>
,
AssertionFunctionSync
<
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
"to be between"
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
"and"
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
]
,
(
subject
:
string
|
number
|
Date
,
start
:
string
|
number
|
Date
,
end
:
string
|
number
|
Date
,
)
=>
|
{
message
:
string
;
schema
?:
undefined
;
subject
?:
undefined
}
|
{
message
?:
undefined
;
schema
:
ZodDate
;
subject
:
Date
}
,
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
PhraseLiteralSlot
<
"to be between"
>
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
PhraseLiteralSlot
<
"and"
>
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
]
,
>
,
AssertionFunctionSync
<
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
"to equal"
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
"within"
,
ZodCustomStringFormat
<
"duration"
>
,
]
,
(
subject
:
string
|
number
|
Date
,
other
:
string
|
number
|
Date
,
toleranceStr
:
string
,
)
=>
|
{
actual
?:
undefined
;
expected
?:
undefined
;
message
:
string
}
|
{
actual
:
{
difference
:
number
}
;
expected
:
{
maxDifference
:
number
}
;
message
:
string
;
}
|
undefined
,
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
PhraseLiteralSlot
<
"to equal"
>
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
PhraseLiteralSlot
<
"within"
>
,
ZodCustomStringFormat
<
"duration"
>
,
]
,
>
,
AssertionFunctionSync
<
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
"to be the same date as"
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
]
,
(
subject
:
string
|
number
|
Date
,
other
:
string
|
number
|
Date
,
)
=>
|
{
actual
?:
undefined
;
expected
?:
undefined
;
message
:
string
}
|
{
actual
:
string
;
expected
:
string
;
message
:
string
}
|
undefined
,
readonly
[
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
PhraseLiteralSlot
<
"to be the same date as"
>
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
]
,
>
,
AssertionStandardSchemaSync
<
readonly
[
readonly
[
"to be a valid date"
,
"to be date-like"
]
]
,
ZodUnion
<
readonly
[
ZodDate
,
ZodUnion
<
readonly
[
ZodISODateTime
,
ZodISODate
]
>
,
ZodNumber
,
]
,
>
,
never
,
>
,
AssertionFunctionSync
<
readonly
[
"to be a weekday"
]
,
(
subject
:
unknown
)
=>
{
message
:
string
}
|
undefined
,
never
,
>
,
AssertionFunctionSync
<
readonly
[
"to be a weekend"
]
,
(
subject
:
unknown
)
=>
{
message
:
string
}
|
undefined
,
never
,
>
,
]
= ...
Tuple of all built-in date-related synchronous assertions.
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
API
Assertions
GitHub
npm
BUPKIS
Loading...
Tuple of all built-in date-related synchronous assertions.