Skip to content

Commit b8938a7

Browse files
Basarat Ali SyedBasarat Ali Syed
authored andcommitted
better
1 parent 19519a2 commit b8938a7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/quick/nodejs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ package
7676

7777
Example package: `npm install typestyle` [for TypeStyle](https://www.npmjs.com/package/typestyle), usage: `import csx = require('typestyle');`.
7878

79+
MORE:
80+
81+
* If you package depends on other TypeScript authored packages, put them in `dependencies`/`devDependencies`/`peerDependencies` just like you would with raw JS packages.
82+
* If you package depends on other JavaScript authored packages and you want to use it type safely in your project, put their types e.g. `@types/foo` in `devDependencies`. JavaScript types should be managed *out of bound* from the main NPM streams. The JavaScript ecosystem breaks types without semantic versioning too commonly, so if your users need types for these they should install the `@types/foo` version that works for them.
7983

8084
## Bonus points
8185

0 commit comments

Comments
 (0)