Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wbhob/objectid-util
- Owner: wbhob
- Created: 2017-10-07T05:03:06.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-07T05:06:49.000Z (over 7 years ago)
- Last Synced: 2024-12-01T13:48:57.635Z (2 months ago)
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.*