typings / discussions

For discussions and issues with Typings or TypeScript definitions
7 stars 0 forks source link

Contributing typings #11

Open willm opened 8 years ago

willm commented 8 years ago

I'm interested in contributing some typings to an npm package I maintain. I've started writing it and added it to package.json like this

{
  "typings": "./my-package.d.ts"
}

In order to test it, I've created a separate consuming app and npm linked my package into it. Is there a way to get typings to use the typings in locally linked packages?

Also, once, I'm happy with my typings, will publishing the package with the typings file to npm be enough to make it available to users in typings by doing a typings install my-package?

blakeembrey commented 8 years ago

If your package has local type definitions, you don't need Typings at all. See https://github.com/Microsoft/TypeScript/wiki/Typings-for-npm-packages.

blakeembrey commented 8 years ago

And by don't need it, your users don't need to install anything either.