Skip to main content

Uncategorized

Functions

f
Temporal.Now.instant
No documentation available
    f
    Temporal.Now.plainDateISO
    No documentation available
      f
      Temporal.Now.plainDateTimeISO
      No documentation available
        f
        Temporal.Now.plainTimeISO
        No documentation available
          f
          Temporal.Now.timeZoneId
          No documentation available
            f
            Temporal.Now.zonedDateTimeISO
            No documentation available

              Interfaces

              I
              Temporal.DateTimeLikeObject
              No documentation available
                I
                Temporal.DurationRoundingOptions
                No documentation available
                  I
                  Temporal.DurationToStringOptions
                  No documentation available
                    I
                    Temporal.DurationTotalOptions
                    No documentation available
                    I
                    Temporal.InstantToStringOptions
                    No documentation available
                    I
                    Temporal.OverflowOptions
                    No documentation available
                    I
                    Temporal.PlainDateTimeToStringOptions
                    No documentation available
                      I
                      Temporal.PlainTimeToStringOptions
                      No documentation available
                        I
                        Temporal.ToStringRoundingOptions
                        No documentation available
                          I
                          Temporal.TransitionOptions
                          No documentation available
                          I
                          Temporal.YearMonthLikeObject
                          No documentation available
                            I
                            Temporal.ZonedDateTimeFromOptions
                            No documentation available

                            Namespaces

                            N
                            Temporal
                            No documentation available
                              N
                              Temporal.Now
                              No documentation available

                                Type Aliases

                                T
                                Temporal.CalendarLike
                                No documentation available
                                  T
                                  Temporal.DateUnit
                                  No documentation available
                                    T
                                    Temporal.DurationLike
                                    No documentation available
                                      T
                                      Temporal.InstantLike
                                      No documentation available
                                        T
                                        Temporal.PartialTemporalLike
                                        No documentation available
                                          T
                                          Temporal.PlainDateLike
                                          No documentation available
                                            T
                                            Temporal.PlainDateTimeLike
                                            No documentation available
                                              T
                                              Temporal.PlainMonthDayLike
                                              No documentation available
                                                T
                                                Temporal.PlainTimeLike
                                                No documentation available
                                                  T
                                                  Temporal.PlainYearMonthLike
                                                  No documentation available
                                                    T
                                                    Temporal.PluralizeUnit
                                                    No documentation available
                                                      T
                                                      Temporal.TimeUnit
                                                      No documentation available
                                                        T
                                                        Temporal.TimeZoneLike
                                                        No documentation available
                                                          T
                                                          Temporal.ZonedDateTimeLike
                                                          No documentation available

                                                            Variables

                                                            v
                                                            caches

                                                            Provides access to the Cache API. Returns a CacheStorage object, which enables storing, retrieving, and managing request/response pairs in a cache.











                                                              interface Temporal.Duration

                                                              Properties #

                                                              #years: number
                                                              readonly
                                                              #months: number
                                                              readonly
                                                              #weeks: number
                                                              readonly
                                                              #days: number
                                                              readonly
                                                              #hours: number
                                                              readonly
                                                              #minutes: number
                                                              readonly
                                                              #seconds: number
                                                              readonly
                                                              #milliseconds: number
                                                              readonly
                                                              #microseconds: number
                                                              readonly
                                                              #nanoseconds: number
                                                              readonly
                                                              #sign: number
                                                              readonly
                                                              #blank: boolean
                                                              readonly
                                                              #[[Symbol.toStringTag]]: "Temporal.Duration"
                                                              readonly

                                                              Methods #

                                                              #round(roundTo: PluralizeUnit<"day" | TimeUnit>): Duration
                                                              #total(totalOf: PluralizeUnit<"day" | TimeUnit>): number
                                                              #total(totalOf: DurationTotalOptions): number
                                                              #toLocaleString(
                                                              locales?: Intl.LocalesArgument,
                                                              options?: Intl.DurationFormatOptions,
                                                              ): string
                                                              #toJSON(): string
                                                              #valueOf(): never







                                                              interface Temporal.Instant

                                                              Properties #

                                                              #epochMilliseconds: number
                                                              readonly
                                                              #epochNanoseconds: bigint
                                                              readonly
                                                              #[[Symbol.toStringTag]]: "Temporal.Instant"
                                                              readonly

                                                              Methods #





                                                              interface Temporal.PlainDate

                                                              Properties #

                                                              #calendarId: string
                                                              readonly
                                                              #era: string | undefined
                                                              readonly
                                                              #eraYear: number | undefined
                                                              readonly
                                                              #year: number
                                                              readonly
                                                              #month: number
                                                              readonly
                                                              #monthCode: string
                                                              readonly
                                                              #day: number
                                                              readonly
                                                              #dayOfWeek: number
                                                              readonly
                                                              #dayOfYear: number
                                                              readonly
                                                              #weekOfYear: number | undefined
                                                              readonly
                                                              #yearOfWeek: number | undefined
                                                              readonly
                                                              #daysInWeek: number
                                                              readonly
                                                              #daysInMonth: number
                                                              readonly
                                                              #daysInYear: number
                                                              readonly
                                                              #monthsInYear: number
                                                              readonly
                                                              #inLeapYear: boolean
                                                              readonly
                                                              #[[Symbol.toStringTag]]: "Temporal.PlainDate"
                                                              readonly

                                                              Methods #



                                                              interface Temporal.PlainDateTime

                                                              Properties #

                                                              #calendarId: string
                                                              readonly
                                                              #era: string | undefined
                                                              readonly
                                                              #eraYear: number | undefined
                                                              readonly
                                                              #year: number
                                                              readonly
                                                              #month: number
                                                              readonly
                                                              #monthCode: string
                                                              readonly
                                                              #day: number
                                                              readonly
                                                              #hour: number
                                                              readonly
                                                              #minute: number
                                                              readonly
                                                              #second: number
                                                              readonly
                                                              #millisecond: number
                                                              readonly
                                                              #microsecond: number
                                                              readonly
                                                              #nanosecond: number
                                                              readonly
                                                              #dayOfWeek: number
                                                              readonly
                                                              #dayOfYear: number
                                                              readonly
                                                              #weekOfYear: number | undefined
                                                              readonly
                                                              #yearOfWeek: number | undefined
                                                              readonly
                                                              #daysInWeek: number
                                                              readonly
                                                              #daysInMonth: number
                                                              readonly
                                                              #daysInYear: number
                                                              readonly
                                                              #monthsInYear: number
                                                              readonly
                                                              #inLeapYear: boolean
                                                              readonly
                                                              #[[Symbol.toStringTag]]: "Temporal.PlainDateTime"
                                                              readonly

                                                              Methods #






                                                              interface Temporal.PlainMonthDay

                                                              Properties #

                                                              #calendarId: string
                                                              readonly
                                                              #monthCode: string
                                                              readonly
                                                              #day: number
                                                              readonly
                                                              #[[Symbol.toStringTag]]: "Temporal.PlainMonthDay"
                                                              readonly

                                                              Methods #

                                                              #equals(other: PlainMonthDayLike): boolean
                                                              #toLocaleString(
                                                              locales?: Intl.LocalesArgument,
                                                              ): string
                                                              #toJSON(): string
                                                              #valueOf(): never



                                                              interface Temporal.PlainTime

                                                              Properties #

                                                              #hour: number
                                                              readonly
                                                              #minute: number
                                                              readonly
                                                              #second: number
                                                              readonly
                                                              #millisecond: number
                                                              readonly
                                                              #microsecond: number
                                                              readonly
                                                              #nanosecond: number
                                                              readonly
                                                              #[[Symbol.toStringTag]]: "Temporal.PlainTime"
                                                              readonly

                                                              Methods #




                                                              interface Temporal.PlainYearMonth

                                                              Properties #

                                                              #calendarId: string
                                                              readonly
                                                              #era: string | undefined
                                                              readonly
                                                              #eraYear: number | undefined
                                                              readonly
                                                              #year: number
                                                              readonly
                                                              #month: number
                                                              readonly
                                                              #monthCode: string
                                                              readonly
                                                              #daysInYear: number
                                                              readonly
                                                              #daysInMonth: number
                                                              readonly
                                                              #monthsInYear: number
                                                              readonly
                                                              #inLeapYear: boolean
                                                              readonly
                                                              #[[Symbol.toStringTag]]: "Temporal.PlainYearMonth"
                                                              readonly

                                                              Methods #











                                                              interface Temporal.ZonedDateTime

                                                              Properties #

                                                              #calendarId: string
                                                              readonly
                                                              #timeZoneId: string
                                                              readonly
                                                              #era: string | undefined
                                                              readonly
                                                              #eraYear: number | undefined
                                                              readonly
                                                              #year: number
                                                              readonly
                                                              #month: number
                                                              readonly
                                                              #monthCode: string
                                                              readonly
                                                              #day: number
                                                              readonly
                                                              #hour: number
                                                              readonly
                                                              #minute: number
                                                              readonly
                                                              #second: number
                                                              readonly
                                                              #millisecond: number
                                                              readonly
                                                              #microsecond: number
                                                              readonly
                                                              #nanosecond: number
                                                              readonly
                                                              #epochMilliseconds: number
                                                              readonly
                                                              #epochNanoseconds: bigint
                                                              readonly
                                                              #dayOfWeek: number
                                                              readonly
                                                              #dayOfYear: number
                                                              readonly
                                                              #weekOfYear: number | undefined
                                                              readonly
                                                              #yearOfWeek: number | undefined
                                                              readonly
                                                              #hoursInDay: number
                                                              readonly
                                                              #daysInWeek: number
                                                              readonly
                                                              #daysInMonth: number
                                                              readonly
                                                              #daysInYear: number
                                                              readonly
                                                              #monthsInYear: number
                                                              readonly
                                                              #inLeapYear: boolean
                                                              readonly
                                                              #offsetNanoseconds: number
                                                              readonly
                                                              #offset: string
                                                              readonly
                                                              #[[Symbol.toStringTag]]: "Temporal.ZonedDateTime"
                                                              readonly

                                                              Methods #






                                                              namespace Temporal

                                                              Interfaces #

                                                              I
                                                              Temporal.DateTimeLikeObject
                                                              No documentation available
                                                                I
                                                                Temporal.DurationRoundingOptions
                                                                No documentation available
                                                                  I
                                                                  Temporal.DurationToStringOptions
                                                                  No documentation available
                                                                    I
                                                                    Temporal.DurationTotalOptions
                                                                    No documentation available
                                                                    I
                                                                    Temporal.InstantToStringOptions
                                                                    No documentation available
                                                                    I
                                                                    Temporal.OverflowOptions
                                                                    No documentation available
                                                                    I
                                                                    Temporal.PlainDateTimeToStringOptions
                                                                    No documentation available
                                                                      I
                                                                      Temporal.PlainTimeToStringOptions
                                                                      No documentation available
                                                                        I
                                                                        Temporal.ToStringRoundingOptions
                                                                        No documentation available
                                                                          I
                                                                          Temporal.TransitionOptions
                                                                          No documentation available
                                                                          I
                                                                          Temporal.YearMonthLikeObject
                                                                          No documentation available
                                                                            I
                                                                            Temporal.ZonedDateTimeFromOptions
                                                                            No documentation available

                                                                            Namespaces #

                                                                            N
                                                                            Temporal.Now
                                                                            No documentation available

                                                                              Type Aliases #

                                                                              T
                                                                              Temporal.CalendarLike
                                                                              No documentation available
                                                                                T
                                                                                Temporal.DateUnit
                                                                                No documentation available
                                                                                  T
                                                                                  Temporal.DurationLike
                                                                                  No documentation available
                                                                                    T
                                                                                    Temporal.InstantLike
                                                                                    No documentation available
                                                                                      T
                                                                                      Temporal.PartialTemporalLike
                                                                                      No documentation available
                                                                                        T
                                                                                        Temporal.PlainDateLike
                                                                                        No documentation available
                                                                                          T
                                                                                          Temporal.PlainDateTimeLike
                                                                                          No documentation available
                                                                                            T
                                                                                            Temporal.PlainMonthDayLike
                                                                                            No documentation available
                                                                                              T
                                                                                              Temporal.PlainTimeLike
                                                                                              No documentation available
                                                                                                T
                                                                                                Temporal.PlainYearMonthLike
                                                                                                No documentation available
                                                                                                  T
                                                                                                  Temporal.PluralizeUnit
                                                                                                  No documentation available
                                                                                                    T
                                                                                                    Temporal.TimeUnit
                                                                                                    No documentation available
                                                                                                      T
                                                                                                      Temporal.TimeZoneLike
                                                                                                      No documentation available
                                                                                                        T
                                                                                                        Temporal.ZonedDateTimeLike
                                                                                                        No documentation available












                                                                                                          type alias Temporal.PluralizeUnit

                                                                                                          Type Parameters #

                                                                                                          #T extends DateUnit | TimeUnit

                                                                                                          Definition #

                                                                                                          T | { year: "years"; month: "months"; week: "weeks"; day: "days"; hour: "hours"; minute: "minutes"; second: "seconds"; millisecond: "milliseconds"; microsecond: "microseconds"; nanosecond: "nanoseconds"; }[T]

                                                                                                          type alias Temporal.TimeUnit

                                                                                                          Definition #

                                                                                                          "hour"
                                                                                                          | "minute"
                                                                                                          | "second"
                                                                                                          | "millisecond"
                                                                                                          | "microsecond"
                                                                                                          | "nanosecond"



                                                                                                          variable caches

                                                                                                          The global CacheStorage instance, providing access to the named Cache objects used to store and retrieve Request/Response pairs.

                                                                                                          Type #

                                                                                                          Provides access to the Cache API. Returns a CacheStorage object, which enables storing, retrieving, and managing request/response pairs in a cache.

                                                                                                          Examples #

                                                                                                          #
                                                                                                          // Open (or create) a cache
                                                                                                          const cache = await caches.open('v1');
                                                                                                          
                                                                                                          // Store a response
                                                                                                          await cache.put('/api/data', new Response('Hello World'));
                                                                                                          
                                                                                                          // Retrieve from cache with fallback
                                                                                                          const response = await caches.match('/api/data') || await fetch('/api/data');
                                                                                                          
                                                                                                          // Delete specific cache
                                                                                                          await caches.delete('v1');
                                                                                                          
                                                                                                          // List all cache names
                                                                                                          const cacheNames = await caches.keys();
                                                                                                          
                                                                                                          // Cache-first strategy
                                                                                                          async function fetchWithCache(request) {
                                                                                                            const cached = await caches.match(request);
                                                                                                            if (cached) return cached;
                                                                                                          
                                                                                                            const response = await fetch(request);
                                                                                                            const cache = await caches.open('v1');
                                                                                                            await cache.put(request, response.clone());
                                                                                                            return response;
                                                                                                          }
                                                                                                          

                                                                                                          Type #

                                                                                                          See #


                                                                                                          Did you find what you needed?

                                                                                                          Privacy policy