mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 23:37:04 +00: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:
Vendored
+1
-1
@@ -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