import type { CSSProperties } from 'vue' is error
Miofly opened this issue · comments
wfly commented
What problem does this feature solve?
vue3
import type { CSSProperties } from 'vue' is correct
vue2.7
import type { CSSProperties } from 'vue' is error
What does the proposed API look like?
import type { CSSProperties } from 'vue' in 2.7 is correct
xingye12 commented
The problem is in the code for Vue 2.7, which does not yet support the syntax for using import type. import type is the syntax in TypeScript for importing types without importing specific values. The Vue 2.x version usually uses JavaScript, not TypeScript.