montagejs / collections

This package contains JavaScript implementations of common data structures with idiomatic interfaces.
http://www.collectionsjs.com
Other
2.09k stars 185 forks source link

Request| Adding an index.js file to collections #174

Open st-clair-clarke opened 7 years ago

st-clair-clarke commented 7 years ago

Hi, I previously asked about the possibility of adding typescrpt definition file to collections. The reply was that it was not currently on the agenda.

Typescript 2.1 now allows the importation of modules without definition files if the module has an index.js file (see https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-1.html>Untyped imports. Would you please consider this? It would allow many more of us to use this very helpful module with minimal effort on your part.

Please let me know what you think?

marchant commented 7 years ago

Read through, but it's unclear to me what's supposed to be in index.js

st-clair-clarke commented 7 years ago

Thanks for the quick response. Basically, the functions and classes that are exposed are placed in the index.js file. Please take a look at https://github.com/jonschlinkert/array-unique/blob/master/index.js. Thanks again.

Cheers