Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
edison1105 committed Apr 29, 2022
1 parent 2f9be26 commit 66352d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/compiler-sfc/src/compileScript.ts
Expand Up @@ -132,7 +132,7 @@ type FromNormalScript = { __fromNormalScript?: boolean }

type PropsDeclType = (TSTypeLiteral | TSInterfaceBody) & FromNormalScript

type EmitsDescType = (TSFunctionType | TSTypeLiteral | TSInterfaceBody) & FromNormalScript
type EmitsDeclType = (TSFunctionType | TSTypeLiteral | TSInterfaceBody) & FromNormalScript

/**
* Compile `<script setup>`
Expand Down Expand Up @@ -277,7 +277,7 @@ export function compileScript(
let propsTypeDeclRaw: Node | undefined
let propsIdentifier: string | undefined
let emitsRuntimeDecl: Node | undefined
let emitsTypeDecl: EmitsDescType | undefined
let emitsTypeDecl: EmitsDeclType | undefined
let emitsTypeDeclRaw: Node | undefined
let emitIdentifier: string | undefined
let hasAwait = false
Expand Down Expand Up @@ -510,7 +510,7 @@ export function compileScript(
emitsTypeDecl = resolveQualifiedType(
emitsTypeDeclRaw,
node => node.type === 'TSFunctionType' || node.type === 'TSTypeLiteral'
) as EmitsDescType | undefined
) as EmitsDeclType | undefined

if (!emitsTypeDecl) {
error(
Expand Down

0 comments on commit 66352d5

Please sign in to comment.