qiao / heap.js

A binary heap implementation in CoffeeScript/JavaScript.
MIT License
125 stars 27 forks source link

Add index.d.ts with Typescript types #27

Closed defunctzombie closed 2 years ago

defunctzombie commented 2 years ago

Update package.json to reference the index.d.ts file with Typescript types. Providing types with the package makes using the package more natural for folks working in typescript projects.

I've copied the types from DefinitelyTyped as a starting point. Once this is merged, the types can be removed from DefinitelyTyped since the package will ship with the types itself.

defunctzombie commented 2 years ago

Any desire to merge this?

defunctzombie commented 2 years ago

@qiao ?