Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wbhob/objectid-util

A little utility typing for ObjectID types
https://github.com/wbhob/objectid-util

Last synced: 8 days ago
JSON representation

A little utility typing for ObjectID types

Awesome Lists containing this project

README

        

# 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
```sh
$ npm install -D objectid-util
```

```ts
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.*