Hey there, I'm trying to incorporate my custom types into my Nuxt.js application and have them automatically imported into every component I create. I made changes to tsconfig.js by adding
"include": ["**/*.ts", "**/*.vue", "**/*.tsx"]
and placed my types in types/index.d.ts
:
export interface IUser {
name: string
address: string
}
However, during the compilation of the app, I encounter an error stating Cannot find name 'IUser'
at let users: IUser[] = []
. I really don't want to manually import the type IUser
into every component. Is there a way for Nuxt.js to automatically import the type definition globally?