Skip to content

Add Temporal (Stage 3) types #60164

Description

@milkcask

⚙ Compilation target

ESNext

⚙ Library

n/a

Missing / Incorrect Definition

  • Temporal
  • Temporal.Now
  • Temporal.Instant
  • Temporal.ZonedDateTime
  • Temporal.PlainDate, Temporal.PlainTime, Temporal.PlainDateTime
  • Temporal.PlainYearMonth, Temporal.PlainMonthDay
  • Temporal.Duration

Sample Code

const now = Temporal.Now.instant();
const past = Temporal.Instant.from('1969-07-20T20:17Z');

Documentation Link

https://tc39.es/proposal-temporal/docs/index.html

The API itself is quite stable. It is calendar that is blocking implementation.

Activity

  1. ooker777 commented on Oct 19, 2024

    @ooker777

    FYI: Deno has implemented it quite long ago: Temporal - Web - Deno Docs

  2. MeesterDev commented on Apr 28, 2025

    @MeesterDev

    FYI Firefox is shipping Temporal in version 139, planned to be released at the end of May.

  3. TomasHubelbauer commented on Oct 18, 2025

    @TomasHubelbauer

    Firefox shipped the Temporal support and it has been out for a few months now. Would be great to get these types unless the condition for entering lib is cross-browser support, which it looks like we will have to wait a bit longer for:
    https://caniuse.com/temporal

  4. denexapp commented on Jan 15, 2026

    @denexapp

    Chrome 144 added support for Temporal, released on Jan 14. It will be great to see the types in lib.d.ts

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

Metadata

Metadata

Labels

Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions