wip: generate codeframe for compiler deprecations

This commit is contained in:
Evan You
2021-04-16 11:51:47 -04:00
parent d974adb327
commit 79cbf21c3e
4 changed files with 40 additions and 35 deletions

View File

@@ -10,7 +10,7 @@ import { CompilerCompatOptions } from './compat/compatConfig'
import { ParserPlugin } from '@babel/parser'
export interface ErrorHandlingOptions {
onWarn?: (msg: string | CompilerError) => void
onWarn?: (warning: CompilerError) => void
onError?: (error: CompilerError) => void
}