2022-07-29 15:42:27 +02:00
|
|
|
/** Declaration file generated by dts-gen */
|
|
|
|
|
|
|
|
export = timestring;
|
|
|
|
|
|
|
|
type ReturnUnit =
|
|
|
|
'ms' |
|
|
|
|
's' |
|
|
|
|
'm' |
|
|
|
|
'h' |
|
|
|
|
'd' |
|
|
|
|
'w' |
|
|
|
|
'th' |
|
|
|
|
'y'
|
|
|
|
|
|
|
|
type TimestringOptions = {
|
2022-07-29 16:00:56 +02:00
|
|
|
hoursPerDay?: number
|
|
|
|
daysPerWeek?: number
|
|
|
|
weeksPerMonth?: number
|
|
|
|
monthsPerYear?: number
|
|
|
|
daysPerYear?: number
|
2022-07-29 15:42:27 +02:00
|
|
|
}
|
|
|
|
|
2022-07-29 16:00:56 +02:00
|
|
|
declare function timestring(string: string, returnUnit?: ReturnUnit, opts?: TimestringOptions): any;
|