1.0.1 • Published 7 years ago
objectid-util v1.0.1
objectid-util
Using MongoDB types in your frontend Angular app is tricky. At Canal, we are using submodules to manage typings between projects, so having this utility is helpful in our internal typings.
Usage
$ npm install -D objectid-util
import { ObjectID } from 'objectid-util'; // and use as a type
It is important to remember that ObjectID is simply a type, not an actual instantiable class.