Skip to content

Commit

Permalink
fix: Update type definition to support strict mode (#951)
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 0472455 commit 86f72a9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/// <reference path="./locale/index.d.ts" />

export = dayjs;
declare function dayjs (date?: dayjs.ConfigType, option?: dayjs.OptionType, locale?: string): dayjs.Dayjs

declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs

declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs

declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs

declare namespace dayjs {
export type ConfigType = string | number | Date | Dayjs
Expand Down

0 comments on commit 86f72a9

Please sign in to comment.