type alias CreateDateFactoryReturn

Return type of createDateFactory.

Contains the unified date creation function and the underlying Dayjs instance.

Properties

createDate: { (): ReturnType<Dayjs>; (): ReturnType<Dayjs>; }

Unified date creation function.

Overloads:

  • createDate() → current date/time
  • createDate(input, format?, options?) → parsed date
dayjs: Dayjs

Underlying Dayjs instance used by this factory.

Usage

import { type CreateDateFactoryReturn } from ".";