From cf792bdb1622013d8e843eac91c2c9d0637b623a Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 5 Aug 2020 16:30:57 +0800 Subject: [PATCH] fix: remove LocalePresetType https://github.com/iamkun/dayjs/pull/968 --- src/generate/dayjs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/generate/dayjs.ts b/src/generate/dayjs.ts index 160fc0a6b..4225c94dc 100644 --- a/src/generate/dayjs.ts +++ b/src/generate/dayjs.ts @@ -35,7 +35,7 @@ const localeMap: IlocaleMapObject = { const parseLocale = (locale: string) => { const mapLocale = localeMap[locale]; - return (mapLocale || locale.split('_')[0]) as LocalePresetType; + return mapLocale || locale.split('_')[0]; }; const parseNoMatchNotice = () => {