Skip to content
New issue

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

fix: index.d.ts for plugins (#app β†’ nuxt/app) #27149

Closed
wants to merge 1 commit into from

Conversation

Cheaterman
Copy link

@Cheaterman Cheaterman commented May 10, 2024

πŸ“š Description

I tried to manually type my plugin (I'm making a custom $fetch) because *.ts is linted by non-Nuxt-aware tslint/tsserver/etc instead of volar and therefore (I assume) can't simply infer types from the defineNuxtPlugin call.

I banged my head against the wall for a good while until I realized #app should actually read nuxt/app. :-)

Copy link

stackblitz bot commented May 10, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@github-actions github-actions bot added the 3.x label May 10, 2024
@manniL manniL changed the title Fix index.d.ts for plugins (#app β†’ nuxt/app) fix: index.d.ts for plugins (#app β†’ nuxt/app) May 10, 2024
@danielroe
Copy link
Member

I think we would recommend instead to point tslint to your tsconfig.json - is there something that isn't working with that?

@danielroe
Copy link
Member

I'm going to close this for now as it's intentionally #app but please do open an issue so we can discuss - maybe with a reproduction πŸ™

@danielroe danielroe closed this May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants