vue TypeScript 工具类 API
- PropType<T>
- 用于在使用运行时 props 声明时,使用更高级的类型,对 prop进行注释。
- ComponentCustomProperties
- 用于扩充组件实例类型以支持自定义全局属性。
- ComponentCustomOptions
- 用于扩充组件选项类型以支持自定义选项。
- ComponentCustomProps
- 用于扩充允许的 TSX prosps,以便在 TSX 元素上使用未声明的prosps。
- CSSProperties
- 用于增加样式属性绑定中的允许值。