chore(types): remove unnecessary non-null assertion (#4169)
This commit is contained in:
parent
d13774b881
commit
9c931d8154
@ -52,12 +52,12 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {
|
||||
) {
|
||||
context.onError(createCompilerError(ErrorCodes.X_V_BIND_NO_EXPRESSION, loc))
|
||||
return {
|
||||
props: [createObjectProperty(arg!, createSimpleExpression('', true, loc))]
|
||||
props: [createObjectProperty(arg, createSimpleExpression('', true, loc))]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
props: [createObjectProperty(arg!, exp)]
|
||||
props: [createObjectProperty(arg, exp)]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -207,7 +207,7 @@ export function ssrProcessComponent(
|
||||
|
||||
// component is inside a slot, inherit slot scope Id
|
||||
if (context.withSlotScopeId) {
|
||||
node.ssrCodegenNode!.arguments.push(`_scopeId`)
|
||||
node.ssrCodegenNode.arguments.push(`_scopeId`)
|
||||
}
|
||||
|
||||
if (typeof component === 'string') {
|
||||
|
Loading…
Reference in New Issue
Block a user