type: improve typing (#177)

This commit is contained in:
扩散性百万甜面包
2019-10-10 02:01:53 +08:00
committed by Evan You
parent 8f1475b8dd
commit def27239bd
5 changed files with 9 additions and 11 deletions

View File

@@ -1767,8 +1767,8 @@ export function createRenderer<
}
function setRef(
ref: string | Function | Ref<any>,
oldRef: string | Function | Ref<any> | null,
ref: string | Function | Ref,
oldRef: string | Function | Ref | null,
parent: ComponentInternalInstance,
value: HostNode | ComponentPublicInstance | null
) {

View File

@@ -50,7 +50,7 @@ h('div', null, {})
export interface RawProps {
[key: string]: any
key?: string | number
ref?: string | Ref<any> | Function
ref?: string | Ref | Function
// used to differ from a single VNode object as children
_isVNode?: never
// used to differ from Array children