[luxon] Added DateTime.toBSON() and Duration.valueOf()

This commit is contained in:
Carson Full
2018-06-12 15:09:26 -05:00
parent 9d7b8fcf77
commit 8686685640

View File

@@ -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';