proposit-core
    Preparing search index...

    Function dateType

    • Creates a new TDateType schema instance.

      The schema admits a Date or its serialized date string. Value.Decode normalizes either into a Date; Value.Encode leaves Date instances in place so JSON.stringify renders them as ISO strings.

      Returns TCodec<TRefine<TUnsafe<Date>>, Date>