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
We should configure @typescript-eslint/consistent-type-imports to enforce type only imports when appropriate.
UPDATE:
Context here is that I received a "Failed to resolve entry for package" error when importing types from a types only package (@deephaven-enterprise/jsapi-types). Since it doesn't have a true entry point, importing things without the type keyword caused the error since there is no index.js. The fix was to use type imports and seemed like a good general rule to force type imports when possible to avoid such scenarios.
The text was updated successfully, but these errors were encountered:
We should configure
@typescript-eslint/consistent-type-imports
to enforcetype
only imports when appropriate.UPDATE:
Context here is that I received a "Failed to resolve entry for package" error when importing types from a types only package (@deephaven-enterprise/jsapi-types). Since it doesn't have a true entry point, importing things without the
type
keyword caused the error since there is noindex.js
. The fix was to usetype
imports and seemed like a good general rule to forcetype
imports when possible to avoid such scenarios.The text was updated successfully, but these errors were encountered: