fix typings
This commit is contained in:
parent
b3a1500538
commit
509950cfef
@ -1,6 +1,7 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## 6.0.2
|
## 6.0.2 - 6.0.6
|
||||||
|
Multiple version bumps because brain no worky
|
||||||
|
|
||||||
- TS typings
|
- TS typings
|
||||||
|
|
||||||
|
12
index.d.ts
vendored
12
index.d.ts
vendored
@ -13,11 +13,11 @@ type ReturnUnit =
|
|||||||
'y'
|
'y'
|
||||||
|
|
||||||
type TimestringOptions = {
|
type TimestringOptions = {
|
||||||
hoursPerDay: number
|
hoursPerDay?: number
|
||||||
daysPerWeek: number
|
daysPerWeek?: number
|
||||||
weeksPerMonth: number
|
weeksPerMonth?: number
|
||||||
monthsPerYear: number
|
monthsPerYear?: number
|
||||||
daysPerYear: number
|
daysPerYear?: number
|
||||||
}
|
}
|
||||||
|
|
||||||
declare function timestring(string: string, returnUnit: ReturnUnit, opts: TimestringOptions): any;
|
declare function timestring(string: string, returnUnit?: ReturnUnit, opts?: TimestringOptions): any;
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@navy.gif/timestring",
|
"name": "@navy.gif/timestring",
|
||||||
"version": "6.0.5",
|
"version": "6.0.6",
|
||||||
"description": "Parse a human readable time string into a time based value",
|
"description": "Parse a human readable time string into a time based value",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"types": "./index.d.ts",
|
"types": "./index.d.ts",
|
||||||
|
Loading…
Reference in New Issue
Block a user