typed-collections
v0.0.2
Published
A collection utility module for TypeScript
Downloads
220
Readme
typed-collections
A collection utility module for TypeScript
Usage
npm install typed-collections
import { List } from "typed-collections";
const list = List.fromArray([
{ id: "1", data: 1000 },
{ id: "2", data: 2000 }
]);
const idMap = list.toIDMap();
console.log(idMap.getOrFail("1"));
Classes
- StrictMap
- List
Interfaces
- ListItem
- ConnectionLike
- PageInfoLike
Functions
- createEmptyConnectionLike
Contribution
- Fork it ( http://github.com/argano/typed-collections )
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
License
MIT