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
If your package has a main .js file, you will need to indicate the main declaration file in your package.json file as well. Set the types property to point to your bundled declaration file. For example:
This Issue is about (✏️ delete as applicable)
typings
and another dependencyFrom reading the below, its best practice to include a
"types:"
section in the package.json to make it work out of the box:https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html
Quote:
Including declarations in your npm package
If your package has a main
.js
file, you will need to indicate the main declaration file in yourpackage.json
file as well. Set thetypes
property to point to your bundled declaration file. For example:The text was updated successfully, but these errors were encountered: