I'm having trouble importing a type from my type.d.ts file
import type { StateDefinition } from '../type'
When using Vite, it can't find the file and throws an error https://i.sstatic.net/buZ14.png
To resolve this, I tried adding the .d.ts extension
import type { StateDefinition } from '../type.d.ts'
However, this resulted in TypeScript errors in VSCode https://i.sstatic.net/DRePB.png
Does anyone have a solution for this issue?