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

Function _test

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

isLastDayOfMonthFunction · 0.90

Tested by

no test coverage detected