UNPKG
date-holidays
Version:
latest (3.24.4)
3.24.4
3.24.3
3.24.2
3.24.1
3.24.0
3.23.22
3.23.21
3.23.20
3.23.18
3.23.17
3.23.16
3.23.15
3.23.14
3.23.13
3.23.12
3.23.11
3.23.10
3.23.9
3.23.8
3.23.7
3.23.6
3.23.5
3.23.4
3.23.3
3.23.2
3.23.1
3.23.0
3.22.1
3.22.0
3.21.5
3.21.4
3.21.3
3.21.2
3.21.1
3.21.0
3.20.0
3.19.2
3.19.0
3.18.0
3.17.0
3.16.17
3.16.15
3.16.14
3.16.13
3.16.12
3.16.11
3.16.10
3.16.9
3.16.8
3.16.7
3.16.6
3.16.5
3.16.4
3.16.3
3.16.2
3.16.1
3.16.0
3.15.1
3.15.0
3.14.10
3.14.9
3.14.8
3.14.7
3.14.6
3.14.5
3.14.4
3.14.3
3.14.2
3.14.1
3.14.0
3.13.1
3.13.0
3.12.2
3.12.1
3.12.0
3.11.0
3.10.0
3.9.1
3.9.0
3.8.4
3.8.3
3.8.2
3.8.1
3.8.0
3.7.0
3.6.0
3.5.1
3.5.0
3.4.0
3.3.0
3.2.0
3.1.1
3.1.0
3.0.1
3.0.0
2.1.1
2.1.0
2.0.3
2.0.2
2.0.0
1.9.1
1.9.0
1.8.7
1.8.6
1.8.5
1.8.4
1.8.3
1.8.1
1.8.0
1.7.1
1.7.0
1.6.2
1.6.1
1.6.0
1.5.3
1.5.2
1.5.1
1.5.0
1.4.14
1.4.13
1.4.12
1.4.11
1.4.10
1.4.9
1.4.8
1.4.7
1.4.6
1.4.5
1.4.4
1.4.3
1.4.2
1.4.1
1.4.0
1.3.11
1.3.10
1.3.9
1.3.8
1.3.7
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.10
1.2.9
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.1
1.1.0
1.0.1
1.0.0
0.2.1
0.2.0
0.1.10
0.1.9
0.1.7
0.1.6
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
worldwide holidays
github.com/commenthol/date-holidays
commenthol/date-holidays
date-holidays
/
types
/
typings.test.ts
9 lines
(6 loc)
•
267 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
Holidays
from
'date-holidays'
;
const
hd =
new
Holidays
(); hd.
init
(
'US'
); hd.
isHoliday
(
new
Date
(
'2019-01-01'
));
// $ExpectType false | Holiday[]
hd.
isHoliday
(
new
Date
(
'2019-02-01'
));
// $ExpectType false | Holiday[]
hd.
getHolidays
();
// $ExpectType Holiday[]