UNPKG

vremel

Version:

JavaScript date utility library for Temporal API

34 lines 4.41 kB
import type { Temporal, TemporalType } from "./types.js"; export declare function isInstant(dt: TemporalType): dt is Temporal.Instant; export declare function isZonedDateTime(dt: TemporalType): dt is Temporal.ZonedDateTime; export declare function isPlainDateTime(dt: TemporalType): dt is Temporal.PlainDateTime; export declare function isPlainTime(dt: TemporalType): dt is Temporal.PlainTime; export declare function isPlainDate(dt: TemporalType): dt is Temporal.PlainDate; export declare function isPlainYearMonth(dt: TemporalType): dt is Temporal.PlainYearMonth; export declare function isPlainMonthDay(dt: TemporalType): dt is Temporal.PlainMonthDay; export declare function isDuration(dt: TemporalType): dt is Temporal.Duration; export declare function isInstantArray(a: TemporalType[]): a is Temporal.Instant[]; export declare function isZonedDateTimeArray(a: TemporalType[]): a is Temporal.ZonedDateTime[]; export declare function isPlainDateTimeArray(a: TemporalType[]): a is Temporal.PlainDateTime[]; export declare function isPlainDateArray(a: TemporalType[]): a is Temporal.PlainDate[]; export declare function isPlainTimeArray(a: TemporalType[]): a is Temporal.PlainTime[]; export declare function isPlainYearMonthArray(a: TemporalType[]): a is Temporal.PlainYearMonth[]; export declare function isPlainMonthDayArray(a: TemporalType[]): a is Temporal.PlainMonthDay[]; export declare function isDurationArray(a: TemporalType[]): a is Temporal.Duration[]; export declare function isInstantConstructor(c: typeof Temporal.Instant | typeof Temporal.ZonedDateTime | typeof Temporal.PlainDate | typeof Temporal.PlainTime | typeof Temporal.PlainDateTime | typeof Temporal.PlainYearMonth | typeof Temporal.PlainMonthDay): c is typeof Temporal.Instant; export declare function isZonedDateTimeConstructor(c: typeof Temporal.Instant | typeof Temporal.ZonedDateTime | typeof Temporal.PlainDate | typeof Temporal.PlainTime | typeof Temporal.PlainDateTime | typeof Temporal.PlainYearMonth | typeof Temporal.PlainMonthDay): c is typeof Temporal.ZonedDateTime; export declare function isPlainDateConstructor(c: typeof Temporal.Instant | typeof Temporal.ZonedDateTime | typeof Temporal.PlainDate | typeof Temporal.PlainTime | typeof Temporal.PlainDateTime | typeof Temporal.PlainYearMonth | typeof Temporal.PlainMonthDay): c is typeof Temporal.PlainDate; export declare function isPlainTimeConstructor(c: typeof Temporal.Instant | typeof Temporal.ZonedDateTime | typeof Temporal.PlainDate | typeof Temporal.PlainTime | typeof Temporal.PlainDateTime | typeof Temporal.PlainYearMonth | typeof Temporal.PlainMonthDay): c is typeof Temporal.PlainTime; export declare function isPlainDateTimeConstructor(c: typeof Temporal.Instant | typeof Temporal.ZonedDateTime | typeof Temporal.PlainDate | typeof Temporal.PlainTime | typeof Temporal.PlainDateTime | typeof Temporal.PlainYearMonth | typeof Temporal.PlainMonthDay): c is typeof Temporal.PlainDateTime; export declare function isPlainYearMonthConstructor(c: typeof Temporal.Instant | typeof Temporal.ZonedDateTime | typeof Temporal.PlainDate | typeof Temporal.PlainTime | typeof Temporal.PlainDateTime | typeof Temporal.PlainYearMonth | typeof Temporal.PlainMonthDay): c is typeof Temporal.PlainYearMonth; export declare function isPlainMonthDayConstructor(c: typeof Temporal.Instant | typeof Temporal.ZonedDateTime | typeof Temporal.PlainDate | typeof Temporal.PlainTime | typeof Temporal.PlainDateTime | typeof Temporal.PlainYearMonth | typeof Temporal.PlainMonthDay): c is typeof Temporal.PlainMonthDay; export declare function getTypeName(dt: TemporalType): string; export declare function getConstructor(dt: Temporal.Instant): typeof Temporal.Instant; export declare function getConstructor(dt: Temporal.ZonedDateTime): typeof Temporal.ZonedDateTime; export declare function getConstructor(dt: Temporal.PlainDate): typeof Temporal.PlainDate; export declare function getConstructor(dt: Temporal.PlainTime): typeof Temporal.PlainTime; export declare function getConstructor(dt: Temporal.PlainDateTime): typeof Temporal.PlainDateTime; export declare function getConstructor(dt: Temporal.PlainYearMonth): typeof Temporal.PlainYearMonth; export declare function getConstructor(dt: Temporal.PlainMonthDay): typeof Temporal.PlainMonthDay; export declare function getConstructor(dt: Temporal.Duration): typeof Temporal.Duration; //# sourceMappingURL=type-utils.d.ts.map