Fix ESLint error with interfaces in global.d.ts
#3743
Unanswered
mikenikles
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Create a file named |
1 reply
|
Coming in 3 years later - did anyone find a solution to this? |
0 replies
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
Userinterface in a component like this:const user: User = getUser().When I run the
lintnpm script, it reportserror 'User' is not defined no-undefDoes anyone know how I can teach ESLint about the interfaces defined in
src/global.d.ts?All reactions