From 93821e8dc0908965ee58aeb856eca17fe473815b Mon Sep 17 00:00:00 2001 From: Eric MORAND Date: Fri, 23 Feb 2018 16:05:18 +0100 Subject: [PATCH] Fix a typo with luxon Settings::resetCaches() See https://moment.github.io/luxon/docs/class/src/settings.js~Settings.html#static-method-resetCaches --- types/luxon/index.d.ts | 2 +- types/luxon/luxon-tests.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/luxon/index.d.ts b/types/luxon/index.d.ts index fac0b90fe6..64fe2c8610 100644 --- a/types/luxon/index.d.ts +++ b/types/luxon/index.d.ts @@ -372,7 +372,7 @@ declare module 'luxon' { let defaultZoneName: string; let throwOnInvalid: boolean; let now: () => number; - function resetCache(): void; + function resetCaches(): void; } type ZoneOffsetOptions = { diff --git a/types/luxon/luxon-tests.ts b/types/luxon/luxon-tests.ts index 11ef254ae9..ce9d09ac8f 100644 --- a/types/luxon/luxon-tests.ts +++ b/types/luxon/luxon-tests.ts @@ -88,6 +88,7 @@ Settings.defaultLocale = 'en'; Settings.defaultZoneName = 'Europe/Paris'; Settings.now(); Settings.now = () => 0; +Settings.resetCaches(); // $ExpectError Settings.defaultZone = Settings.defaultZone;