Temporal Utils by Ian Macalinao
    Preparing search index...

    Function installTemporal

    • Install the Temporal API onto globalThis (polyfill-style side effect).

      If the runtime already exposes a native globalThis.Temporal, nothing is mutated and the native API is returned. Otherwise temporal-polyfill is loaded lazily and assigned to globalThis.Temporal and Date.prototype.toTemporalInstant.

      Prefer loadTemporal when you do not need global mutation — it keeps the default path a pure ponyfill.

      Returns Promise<TemporalApi>

      The Temporal API surface (TemporalApi) that is now available on globalThis.