We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsconfig.common.json:
tsconfig.common.json
{ "compilerOptions": { "plugins": [ { "name": "@unsplash/ts-namespace-import-plugin", "namespaces": { "AspectRatio": { "importPath": "app/types/AspectRatio" }, } } ] } }
app/client/index.tsx:
app/client/index.tsx
const x: AspectRatio = { width: 1, height: 1 }
app/types/AspectRatio.ts:
app/types/AspectRatio.ts
export type AspectRatio = { width: number; height: number };
Expected: auto import suggestions for both the namespace import and the named import.
Actual: auto import suggestions for the namespace import only. (Side note: why are there two namespace suggestions? This is likely another issue.)
It seems that the namespace import suggestion is overriding the named import suggestion.
For comparison, if we disable the TS plugin, the named import suggestion correctly appears:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
tsconfig.common.json
:app/client/index.tsx
:app/types/AspectRatio.ts
:Expected: auto import suggestions for both the namespace import and the named import.
Actual: auto import suggestions for the namespace import only. (Side note: why are there two namespace suggestions? This is likely another issue.)
Screen.Recording.2024-04-19.at.10.38.44.mov
It seems that the namespace import suggestion is overriding the named import suggestion.
For comparison, if we disable the TS plugin, the named import suggestion correctly appears:
The text was updated successfully, but these errors were encountered: