refactor(types): move component props interfaces + expose AllowedComponentProps

fix #1632
This commit is contained in:
Evan You
2020-07-19 14:09:37 -04:00
parent 2deb0c7a74
commit 03c681e396
4 changed files with 24 additions and 14 deletions

View File

@@ -71,12 +71,6 @@ export type VNodeHook =
| VNodeMountHook[]
| VNodeUpdateHook[]
export interface ComponentCustomProps {}
export interface AllowedComponentProps {
class?: unknown
style?: unknown
}
// https://github.com/microsoft/TypeScript/issues/33099
export type VNodeProps = {
key?: string | number