ts-namespace-import-plugin icon indicating copy to clipboard operation
ts-namespace-import-plugin copied to clipboard

Auto import common namespaces in your modules

Results 9 ts-namespace-import-plugin issues
Sort by recently updated
recently updated
newest added

`tsconfig.common.json`: ```json { "compilerOptions": { "plugins": [ { "name": "@unsplash/ts-namespace-import-plugin", "namespaces": { "AspectRatio": { "importPath": "app/types/AspectRatio" }, } } ] } } ``` `app/client/index.tsx`: ```tsx const x: AspectRatio = {...

bug

`tsconfig.common.json`: ```json { "compilerOptions": { "plugins": [ { "name": "@unsplash/ts-namespace-import-plugin", "namespaces": { "URL": { "importPath": "shared/facades/URL" }, } } ] } } ``` `playground/src/main.ts`: ```ts import { pipe } from...

In Helix with typescript-language-server I see this repeatedly in my logs, though the plugin *does* work: ```console $ hx -v $ cat ~/.cache/helix/helix.log 2023-09-30T18:19:23.240 helix_term::application [ERROR] received malformed notification from...

let's say I have a module in my project at: `./MyModule.ts` I would like to have it auto imported from anywhere within my project using a relative path, for example:...

In this example, `shared/facades/NonEmptyString` has already been imported so it should not be suggested. ```ts import { flow } from 'fp-ts/function'; import * as NES from 'shared/facades/NonEmptyString'; declare const f:...

1. Clear the contents of `shared/facades/fast-check/arbs.ts` and save 2. Reload VS Code (haven't tested other editors) 3. Once TS has initialised, type `Ob` - When we type `O`, there are...

bug

https://user-images.githubusercontent.com/7310201/160409958-5ab4a6b4-6db4-4784-869d-19f9248f91d1.mov This is a little wonky as of right now. A lot of weird undocumented quirks in the API made it kinda hard to implement this feature and needs just...

I opened a file with this content: ```ts import * as O from 'fp-ts/Option'; ``` I waited for TS to initialise and then started to type `O.`. I then opened...

Given: ```ts // This must come first import 'app/client/helpers/css-order'; LoggerContext; ``` Trigger auto import. Expected: import is added last (to match TypeScript's auto import behaviour). ```ts // This must come...

bug