mirror of https://github.com/vladmandic/human
notes on named imports
parent
30924a8078
commit
d6c2c8c474
|
@ -120,6 +120,12 @@ Install with:
|
|||
const human = new Human();
|
||||
```
|
||||
|
||||
*Note: When using a named import in a TypeScript project, it is advisable to instruct TypeScript where to look for type definitions using explict path to types*
|
||||
|
||||
```js
|
||||
/// <reference path='./node_modules/@vladmandic/human/dist/human.d.ts' />
|
||||
```
|
||||
|
||||
<br>
|
||||
|
||||
## 3. [NPM](https://www.npmjs.com/) module
|
||||
|
|
Loading…
Reference in New Issue