date-vir - v8.5.0
    Preparing search index...

    Variable timezoneShapeConst

    timezoneShape: (defaultValue?: string) => Shape<TUnsafe<string>> = ...

    A shape for a timezone value.

    Unlike a strict enum check against the typed Timezone list, this validates at runtime via isValidTimezone (i.e. any valid IANA zone name). It therefore accepts valid IANA names that aren't in the typed list, such as legacy aliases like 'America/Indianapolis' that some environments (notably Safari) still report from Intl. The static type is string so that timezone inputs are not restricted to the Timezone enum.

    Type Declaration

      • (defaultValue?: string): Shape<TUnsafe<string>>
      • Parameters

        • OptionaldefaultValue: string

        Returns Shape<TUnsafe<string>>