mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Fix a typo with luxon Settings::resetCaches()
See https://moment.github.io/luxon/docs/class/src/settings.js~Settings.html#static-method-resetCaches
This commit is contained in:
2
types/luxon/index.d.ts
vendored
2
types/luxon/index.d.ts
vendored
@@ -372,7 +372,7 @@ declare module 'luxon' {
|
||||
let defaultZoneName: string;
|
||||
let throwOnInvalid: boolean;
|
||||
let now: () => number;
|
||||
function resetCache(): void;
|
||||
function resetCaches(): void;
|
||||
}
|
||||
|
||||
type ZoneOffsetOptions = {
|
||||
|
||||
@@ -88,6 +88,7 @@ Settings.defaultLocale = 'en';
|
||||
Settings.defaultZoneName = 'Europe/Paris';
|
||||
Settings.now();
|
||||
Settings.now = () => 0;
|
||||
Settings.resetCaches();
|
||||
|
||||
// $ExpectError
|
||||
Settings.defaultZone = Settings.defaultZone;
|
||||
|
||||
Reference in New Issue
Block a user