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

Function _test

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

Source from the content-addressed store, hash-verified

66
67 it("doesn't enforce argument and context to be of the same type", () => {
68 function _test<DateType extends Date, ResultDate extends Date = DateType>(
69 arg: DateArg<DateType>,
70 options?: ContextOptions<ResultDate>,
71 ) {
72 getISOWeek(arg, { in: options?.in });
73 }
74 });
75 });
76});

Callers

nothing calls this directly

Calls 1

getISOWeekFunction · 0.90

Tested by

no test coverage detected