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

Function _test

pkgs/core/src/getDaysInMonth/test.ts:51–56  ·  view source on GitHub ↗
(
        arg: DateArg<DateType>,
        options?: ContextOptions<ResultDate>,
      )

Source from the content-addressed store, hash-verified

49
50 it("doesn't enforce argument and context to be of the same type", () => {
51 function _test<DateType extends Date, ResultDate extends Date = DateType>(
52 arg: DateArg<DateType>,
53 options?: ContextOptions<ResultDate>,
54 ) {
55 getDaysInMonth(arg, { in: options?.in });
56 }
57 });
58 });
59});

Callers

nothing calls this directly

Calls 1

getDaysInMonthFunction · 0.90

Tested by

no test coverage detected