MCPcopy
hub / github.com/date-fns/date-fns / _test

Function _test

pkgs/core/src/differenceInDays/test.ts:218–223  ·  view source on GitHub ↗
(
      arg1: DateType1 | number | string,
      arg2: DateType2 | number | string,
    )

Source from the content-addressed store, hash-verified

216
217 it("allows dates to be of different types", () => {
218 function _test<DateType1 extends Date, DateType2 extends Date>(
219 arg1: DateType1 | number | string,
220 arg2: DateType2 | number | string,
221 ) {
222 differenceInDays(arg1, arg2);
223 }
224 });
225
226 describe("context", () => {

Callers

nothing calls this directly

Calls 1

differenceInDaysFunction · 0.90

Tested by

no test coverage detected