Reference TS declaration file in package.json #7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is needed so that npm install automatically finds the types.
Could you elaborate on that?
npmitself doesn't do anything with types, and TypeScript will already look for a.d.tsfile alongside the package's main file, and load that if it's available (at least, for us in CodeMirror's codebase it does). What problem does this field solve?Oh, you're right. I had installed the library and for some reason my editor hadn't registered the types.
Pull request closed