mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
Added 'setDefault' to Moment Timezone definition
This commit is contained in:
parent
a278148f0e
commit
42e1de76c9
@ -75,3 +75,5 @@ moment.tz.load({
|
||||
});
|
||||
|
||||
moment.tz.names();
|
||||
|
||||
moment.tz.setDefault('America/Los_Angeles');
|
||||
|
||||
2
moment-timezone/moment-timezone.d.ts
vendored
2
moment-timezone/moment-timezone.d.ts
vendored
@ -68,6 +68,8 @@ interface MomentTimezone {
|
||||
}): void;
|
||||
|
||||
names(): string[];
|
||||
|
||||
setDefault(timezone: string): void;
|
||||
}
|
||||
|
||||
declare module 'moment-timezone' {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user