(
start: DateType1 | number | string,
end: DateType2 | number | string,
)
| 267 | |
| 268 | it("allows dates to be of different types", () => { |
| 269 | function _test<DateType1 extends Date, DateType2 extends Date>( |
| 270 | start: DateType1 | number | string, |
| 271 | end: DateType2 | number | string, |
| 272 | ) { |
| 273 | formatDistance(start, end); |
| 274 | } |
| 275 | }); |
| 276 | |
| 277 | describe("context", () => { |
nothing calls this directly
no test coverage detected