You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have encountered a problem while creating npm library with Typescript. I have created a few react components. Creating declaration files and then combining all of them in one and declaring the module.
Where to put my .d.ts declarations when distributing npm package?
The text was updated successfully, but these errors were encountered:
For an example of something that is built on TypeScript and is distributed on npm, take a look at RxJS. There are a lot of considerations to distributing your code on npm that are well outside of the scope of just TypeScript. You need to consider if you will distribute your code as CJS, UMD, ES6 (or even AMD) modules and what types of loaders you expect people to use your code with, etc.
mhegazy
added
Docs
The issue relates to how you learn TypeScript
@types
Relates to working with .d.ts files (declaration/definition files) from DefinitelyTyped
labels
Feb 19, 2016
I have encountered a problem while creating
npm
library with Typescript. I have created a fewreact
components. Creating declaration files and then combining all of them in one and declaring the module.Where to put my .d.ts declarations when distributing npm package?
The text was updated successfully, but these errors were encountered: