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
The package.json files have a main field but are missing a types field, it prevents some editors (such as Jetbrains' Webstorm and Intellij) from picking the type declarations and providing autocompletion.
For example, for @actions/core, the package.json should look like this:
I found that the error was on my end, I was using the Typescript options allowSyntheticDefaultImports and esModuleInterop with default imports (instead of star imports) while the modules are marked as transpiled from Typescript. After switching to star imports, it works. It may still be a good thing to add the types field but it's less important.
The
package.json
files have amain
field but are missing atypes
field, it prevents some editors (such as Jetbrains' Webstorm and Intellij) from picking the type declarations and providing autocompletion.For example, for
@actions/core
, thepackage.json
should look like this:The text was updated successfully, but these errors were encountered: