mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 21:00:01 +08:00
[luxon] Added DateTime.toBSON() and Duration.valueOf()
This commit is contained in:
2
types/luxon/index.d.ts
vendored
2
types/luxon/index.d.ts
vendored
@@ -196,6 +196,7 @@ declare module 'luxon' {
|
||||
setLocale(locale: any): DateTime;
|
||||
setZone(zone: string | Zone, options?: ZoneOptions): DateTime;
|
||||
startOf(unit: DurationUnit): DateTime;
|
||||
toBSON(): Date;
|
||||
toFormat(format: string, options?: ToFormatOptions): string;
|
||||
toHTTP(): string;
|
||||
toISO(options?: ISOTimeOptions): string;
|
||||
@@ -281,6 +282,7 @@ declare module 'luxon' {
|
||||
includeConfig?: boolean;
|
||||
}): DurationObject;
|
||||
toString(): string;
|
||||
valueOf(): number;
|
||||
}
|
||||
|
||||
type EraLength = 'short' | 'long';
|
||||
|
||||
Reference in New Issue
Block a user