Type-only imports and exports is supported from Typescript 3.8.0.
Set Typescript version >= 3.8.0 to resolve this error.
Here are some TypeScript tips that may help you:
Overall, TypeScript is a powerful tool that can help you catch errors early and write more maintainable code. By following these tips, you can get the most out of TypeScript and build better applications.
This saved me HOURS of refactoring time
How Did I Not Know This TypeScript Trick Earlier??!
Typescript tips | Part 1
TypeScript is Literal Magic