mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Update fromnow.d.ts
This commit is contained in:
parent
596756140d
commit
c2da4112f2
4
fromnow/fromnow.d.ts
vendored
4
fromnow/fromnow.d.ts
vendored
@ -12,13 +12,13 @@ declare namespace FromNow {
|
||||
export interface FromNowStatic {
|
||||
/**
|
||||
* Get readable time differences from now vs past or future dates.
|
||||
* @param {string} date
|
||||
* @param {string|Date} date
|
||||
* @param {object} [opts]
|
||||
* @param {number} [opts.maxChucks=10]
|
||||
* @param {boolean} [opts.useAgo=false]
|
||||
* @param {boolean} [opts.useAnd=false]
|
||||
*/
|
||||
(date: string, opts?: FromNowOpts): string
|
||||
(date: string|Date, opts?: FromNowOpts): string
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user