Skip to content

Commit

Permalink
fix: according to code review 2
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleSound committed Nov 28, 2023
1 parent 0ab2281 commit 575e9c7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/compiler-core/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function defaultOnWarn(msg: CompilerError) {
__DEV__ && console.warn(`[Vue warn] ${msg.message}`)
}

export type InferCompilerError<T> = T extends ErrorCodes
type InferCompilerError<T> = T extends ErrorCodes
? CoreCompilerError
: CompilerError

Expand Down
3 changes: 1 addition & 2 deletions packages/compiler-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export {
defaultOnError,
defaultOnWarn,
type CoreCompilerError,
type CompilerError,
type InferCompilerError
type CompilerError
} from './errors'

export * from './ast'
Expand Down
1 change: 0 additions & 1 deletion packages/compiler-vapor/src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ export {
defaultOnWarn,
type CoreCompilerError,
type CompilerError,
type InferCompilerError,
} from '@vue/compiler-dom'

export const enum ErrorCodes {
Expand Down

0 comments on commit 575e9c7

Please sign in to comment.