EvanHahn / HumanizeDuration.js

361000 becomes "6 minutes, 1 second"
https://evanhahn.github.io/HumanizeDuration.js/
The Unlicense
1.64k stars 175 forks source link

Feature: Add Typescript declarations #108

Closed moberwasserlechner closed 6 years ago

moberwasserlechner commented 8 years ago

Hi,

it would be great to have typescript declarations because it would make it easier to use with Angular2 (Typescript) projects.

https://www.typescriptlang.org/docs/handbook/writing-declaration-files.html

Thanks and BR, Michael

EvanHahn commented 8 years ago

I'm happy to accept a pull request for this, even one that's incomplete!

EvanHahn commented 6 years ago

The TypeScript declarations should live in the DefinitelyTyped repo, so I'm going to close this issue.

RigoOnRails commented 5 years ago

Added TypeScript type definitions to DefinitelyTyped under @types/humanize-duration.

isaachinman commented 11 months ago

@EvanHahn Any interest in maintaining types within this repo? That is the more modern approach.

EvanHahn commented 11 months ago

Sure, happy to review a pull request. (If you can generate a .d.ts file from the existing JSDoc declarations, that would be ideal.)