Actually this "import type" is a new syntax introduced in Typescript 3.8
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-exports
The solution is actually very simple (if it's an option for you), just upgrade your typescript to 3.8+