Fix ESLint error with interfaces in global.d.ts
#3743
Unanswered
mikenikles
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Create a file named |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi 👋,
I have the following interface in my
src/global.d.ts
:I use the
User
interface in a component like this:const user: User = getUser()
.When I run the
lint
npm script, it reportserror 'User' is not defined no-undef
Does anyone know how I can teach ESLint about the interfaces defined in
src/global.d.ts
?Beta Was this translation helpful? Give feedback.
All reactions