UNPKG
date-limits
Version:
latest (1.1.0)
1.1.0
Check if a date is before a flexible limit.
github.com/joker876/date-limits
joker876/date-limits
date-limits
/
dist
/
esm
/
_internal-types.d.ts
8 lines
(7 loc)
•
163 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
export type Range
<
T
>
=
{
from
:
T
; to
:
T
;
}
; export type RequiredAtLeastOne
<
T
>
=
{
[
K
in
keyof
T
]
:
Pick
<
T
,
K
>
&
Partial
<
Omit
<
T
,
K
>
>
;
}
[
keyof
T
]
;