types: improve typing (#313)
This commit is contained in:
parent
3e51200bae
commit
b54c05f751
@ -104,7 +104,7 @@ function getPatchFlag(node: PlainElementNode): number | undefined {
|
|||||||
codegenNode = codegenNode.arguments[0]
|
codegenNode = codegenNode.arguments[0]
|
||||||
}
|
}
|
||||||
const flag = codegenNode.arguments[3]
|
const flag = codegenNode.arguments[3]
|
||||||
return flag ? parseInt(flag as string, 10) : undefined
|
return flag ? parseInt(flag, 10) : undefined
|
||||||
}
|
}
|
||||||
|
|
||||||
function isStaticNode(
|
function isStaticNode(
|
||||||
@ -117,7 +117,7 @@ function isStaticNode(
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (resultCache.has(node)) {
|
if (resultCache.has(node)) {
|
||||||
return resultCache.get(node) as boolean
|
return resultCache.get(node)!
|
||||||
}
|
}
|
||||||
const flag = getPatchFlag(node)
|
const flag = getPatchFlag(node)
|
||||||
if (!flag || flag === PatchFlags.TEXT) {
|
if (!flag || flag === PatchFlags.TEXT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user