Skip to content

Commit

Permalink
Add typings for translations
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-musialek-skyrise committed Oct 9, 2021
1 parent 2723661 commit 7274337
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,8 @@ type Units =
'month' | 'b' |
'year' | 'yr' | 'y'

export default function parse (str: string, format?: Units): number | null
declare const parse: ((input: string, format?: Units) => number) & {
[key: string]: number;
};

export default parse;

0 comments on commit 7274337

Please sign in to comment.