Skip to content

Commit

Permalink
fix: add isDayjs => boolean API
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed Jun 14, 2018
1 parent c2a487c commit 6227c8b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ declare namespace dayjs {
export function extend(plugin: PluginFunc, option?: ConfigType): Dayjs

export function locale(arg1: any, arg2?: any): void

export function isDayjs(d: any): d is Dayjs
}
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,8 @@ dayjs.extend = (plugin, option) => {

dayjs.locale = parseLocale

dayjs.isDayjs = isDayjs

dayjs.en = Ls[L]

export default dayjs

0 comments on commit 6227c8b

Please sign in to comment.