UNPKG

inngest

Version:

Official SDK for Inngest.com. Inngest is the reliability layer for modern applications. Inngest combines durable execution, events, and queues into a zero-infra platform with built-in observability.

40 lines 1.4 kB
//#region src/helpers/temporal.d.ts /** * A type that represents a `Temporal.Instant` object. * * `*Like` types are available for many temporal objects, but not all of them. * Also, the `*Like` types can sometimes be linked to particular * implementations, and are not stable between them. * * Therefore, we try to detect only the hopefully-stable branding. */ type InstantLike = { readonly [Symbol.toStringTag]: "Temporal.Instant"; }; /** * A type that represents a `Temporal.Duration` object. * * `*Like` types are available for many temporal objects, but not all of them. * Also, the `*Like` types can sometimes be linked to particular * implementations, and are not stable between them. * * Therefore, we try to detect only the hopefully-stable branding. */ type DurationLike = { readonly [Symbol.toStringTag]: "Temporal.Duration"; }; /** * A type that represents a `Temporal.ZonedDateTime` object. * * `*Like` types are available for many temporal objects, but not all of them. * Also, the `*Like` types can sometimes be linked to particular * implementations, and are not stable between them. * * Therefore, we try to detect only the hopefully-stable branding. */ type ZonedDateTimeLike = { readonly [Symbol.toStringTag]: "Temporal.ZonedDateTime"; }; //#endregion export { DurationLike, InstantLike, ZonedDateTimeLike }; //# sourceMappingURL=temporal.d.cts.map