Within my project, one of the libraries called parse5
is providing typing information in .d.ts files. The current syntax used to import types is causing several TypeScript errors during application runtime because TypeScript does not seem to recognize this way of importing types.
By modifying the import syntax to:
import type { CharacterToken, DoctypeToken, TagToken, EOFToken, CommentToken } from '../common/token.js';
I am able to resolve these errors successfully.
Could it be possible that I am using an incorrect tsc version?