Skip to content

Commit

Permalink
fix: optional error
Browse files Browse the repository at this point in the history
  • Loading branch information
Dunqing committed Apr 14, 2022
1 parent 233cb69 commit cfc5b92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/locale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const parseLocale = function parseLocale(locale: string) {
}

const locale: PluginFunc = (o, dayjsClass, d) => {
const generateLocale = (locale: any) => (function(this: dayjs.Dayjs, preset: string | ILocale, object?: Partial<ILocale>, isLocal: any) {
const generateLocale = (locale: any) => (function(this: dayjs.Dayjs, preset: string | ILocale, object?: Partial<ILocale>, isLocal?: any) {
if (typeof preset === 'string') {
preset = parseLocale(preset)
}
Expand Down

0 comments on commit cfc5b92

Please sign in to comment.