File tree Expand file tree Collapse file tree 2 files changed +27
-1
lines changed
Expand file tree Collapse file tree 2 files changed +27
-1
lines changed Original file line number Diff line number Diff line change 1+ declare module "@sector-labs/humanize-duration" {
2+ export interface HumanizeDurationOptions {
3+ largest ?: number ;
4+ language ?: string ;
5+ delimiter ?: string ;
6+ spacer ?: string ;
7+ serialComma ?: string ;
8+ units ?: string [ ] ;
9+ languages ?: { } ;
10+ round ?: boolean ;
11+ unitMeasures ?: {
12+ y : number ;
13+ mo : number ;
14+ w : number ;
15+ d : number ;
16+ h : number ;
17+ m : number ;
18+ s : number ;
19+ ms : number ;
20+ } ;
21+ }
22+
23+ declare function humanizeDuration ( duration : number , options ?: HumanizeDurationOptions ) : string ;
24+ export = humanizeDuration ;
25+ }
Original file line number Diff line number Diff line change 2525 " Abdul Jalil (https://github.com/abduljalilm94)" ,
2626 " Alex Sam (https://github.com/sam-lex)"
2727 ],
28- "version" : " 3.15.1-sl.1 " ,
28+ "version" : " 3.15.1-sl.2 " ,
2929 "description" : " Convert millisecond durations to English and many other languages." ,
3030 "homepage" : " https://github.com/SectorLabs/HumanizeDuration.js" ,
3131 "main" : " humanize-duration.js" ,
32+ "types" : " humanize-duration.d.ts" ,
3233 "scripts" : {
3334 "pretest" : " standard --fix" ,
3435 "test" : " mocha"
You can’t perform that action at this time.
0 commit comments