Skip to content

Commit

Permalink
Update src/formatDistance/index.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Sasha Koss <koss@nocorp.me>
  • Loading branch information
a-korzun and kossnocorp committed Mar 29, 2021
1 parent fb0f912 commit 1e13190
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/formatDistance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export interface Options {
locale?: Locale
}

export default function formatDistance(dirtyDate: Date | number, dirtyBaseDate: Date | number, dirtyOptions?: Options) {
export default function formatDistance(dirtyDate: Date | number, dirtyBaseDate: Date | number, options : LocaleOptions & { includeSeconds?: boolean, addSuffix?: boolean } = {}) {
requiredArgs(2, arguments)

const options = dirtyOptions || {}
Expand Down

0 comments on commit 1e13190

Please sign in to comment.