]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
types: fix error inference for public compile method
authorEvan You <yyx990803@gmail.com>
Wed, 9 Oct 2019 15:30:56 +0000 (11:30 -0400)
committerEvan You <yyx990803@gmail.com>
Wed, 9 Oct 2019 15:30:56 +0000 (11:30 -0400)
packages/compiler-core/src/parse.ts

index 1dab15e500bb4c7ea4968211327fd6ef804d7995..cbb382c329a3fcfbfc7e3924150dd795544747cd 100644 (file)
@@ -1,8 +1,8 @@
 import {
   ErrorCodes,
-  CoreCompilerError,
   createCompilerError,
-  defaultOnError
+  defaultOnError,
+  CompilerError
 } from './errors'
 import {
   assert,
@@ -38,7 +38,7 @@ export interface ParserOptions {
   // The full set is https://html.spec.whatwg.org/multipage/named-characters.html#named-character-references
   namedCharacterReferences?: { [name: string]: string | undefined }
 
-  onError?: (error: CoreCompilerError) => void
+  onError?: (error: CompilerError) => void
 }
 
 export const defaultParserOptions: Required<ParserOptions> = {