fix typings

This commit is contained in:
Erik 2022-07-29 17:00:56 +03:00
parent b3a1500538
commit 509950cfef
Signed by: Navy.gif
GPG Key ID: 811EC0CD80E7E5FB
3 changed files with 9 additions and 8 deletions

View File

@ -1,6 +1,7 @@
# Changelog
## 6.0.2
## 6.0.2 - 6.0.6
Multiple version bumps because brain no worky
- TS typings

12
index.d.ts vendored
View File

@ -13,11 +13,11 @@ type ReturnUnit =
'y'
type TimestringOptions = {
hoursPerDay: number
daysPerWeek: number
weeksPerMonth: number
monthsPerYear: number
daysPerYear: number
hoursPerDay?: number
daysPerWeek?: number
weeksPerMonth?: number
monthsPerYear?: number
daysPerYear?: number
}
declare function timestring(string: string, returnUnit: ReturnUnit, opts: TimestringOptions): any;
declare function timestring(string: string, returnUnit?: ReturnUnit, opts?: TimestringOptions): any;

View File

@ -1,6 +1,6 @@
{
"name": "@navy.gif/timestring",
"version": "6.0.5",
"version": "6.0.6",
"description": "Parse a human readable time string into a time based value",
"main": "./index.js",
"types": "./index.d.ts",