let propsOption = undefined
let emitsOption = undefined
+ let exposeOption = undefined
if (optionsRuntimeDecl.type === 'ObjectExpression') {
for (const prop of optionsRuntimeDecl.properties) {
if (
) {
if (prop.key.name === 'props') propsOption = prop
if (prop.key.name === 'emits') emitsOption = prop
+ if (prop.key.name === 'expose') exposeOption = prop
}
}
}
emitsOption
)
}
+ if (exposeOption) {
+ error(
+ `${DEFINE_OPTIONS}() cannot be used to declare expose. Use ${DEFINE_EXPOSE}() instead.`,
+ exposeOption
+ )
+ }
return true
}