Skip to content

Commit cf792bd

Browse files
committed
fix: remove LocalePresetType
iamkun/dayjs#968
1 parent d8d6e6b commit cf792bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/generate/dayjs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const localeMap: IlocaleMapObject = {
3535

3636
const parseLocale = (locale: string) => {
3737
const mapLocale = localeMap[locale];
38-
return (mapLocale || locale.split('_')[0]) as LocalePresetType;
38+
return mapLocale || locale.split('_')[0];
3939
};
4040

4141
const parseNoMatchNotice = () => {

0 commit comments

Comments
 (0)