(
arg1: DateType1 | number | string,
arg2: DateType2 | number | string,
)
| 154 | |
| 155 | it("allows dates to be of different types", () => { |
| 156 | function _test<DateType1 extends Date, DateType2 extends Date>( |
| 157 | arg1: DateType1 | number | string, |
| 158 | arg2: DateType2 | number | string, |
| 159 | ) { |
| 160 | differenceInMonths(arg1, arg2); |
| 161 | } |
| 162 | }); |
| 163 | |
| 164 | describe("context", () => { |
nothing calls this directly
no test coverage detected