refactor: move runtime compile error handling to vue

This commit is contained in:
Evan You
2019-12-11 10:25:34 -05:00
parent c202bd6ac0
commit 4d730f464d
3 changed files with 21 additions and 22 deletions

View File

@@ -55,7 +55,7 @@ export interface ComponentOptionsBase<
ctx: SetupContext
) => RawBindings | RenderFunction | void
name?: string
template?: string | object // can be a direct DOM node
template?: string
// Note: we are intentionally using the signature-less `Function` type here
// since any type with signature will cause the whole inference to fail when
// the return expression contains reference to `this`.