Skip to content

Date type override configuration for functional API inference #3176

Description

@Romakita

Objective

Allow a global or project-level override for the inferred date-like type in schema builders (date(), datetime(), time()). Today, these default to Date, but some projects may want to infer Moment, Dayjs, etc., at the type level, without changing runtime.

Details

  • Offer configuration (via module augmentation, DI token, or helper) to globally override the inferred date type.
  • Ensure runtime stays unchanged (still Date conversion), only TypeScript inference is affected.
  • Document supported patterns for override.
  • Ensure all builders (date(), datetime(), time()) respect the configured type.

Parent Epic: schema-inference-epic

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions