Skip to content

Commit a1771e8

Browse files
authored
feat: add date type in apiobject and apioptions (#1666)
1 parent 1289217 commit a1771e8

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/analytics-js-common/src/types/ApiObject.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export type ApiObject = {
99
| boolean
1010
| ApiObject
1111
| null
12+
| Date
1213
| (string | number | boolean | null | ApiObject)[]
1314
| undefined;
1415
};

packages/analytics-js-common/src/types/EventApi.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export type ApiOptions = {
2222
| boolean
2323
| ApiObject
2424
| null
25+
| Date
2526
| (string | number | boolean | ApiObject)[]
2627
| undefined;
2728
};

0 commit comments

Comments
 (0)