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

Function _test

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

Source from the content-addressed store, hash-verified

93
94 it("doesn't enforce argument and context to be of the same type", () => {
95 function _test<DateType extends Date, ResultDate extends Date = DateType>(
96 arg: DateArg<DateType>,
97 options?: ContextOptions<ResultDate>,
98 ) {
99 getWeekOfMonth(arg, { in: options?.in });
100 }
101 });
102 });
103});

Callers

nothing calls this directly

Calls 1

getWeekOfMonthFunction · 0.90

Tested by

no test coverage detected