Skip to content

Commit 66352d5

Browse files
committed
fix typo
1 parent 2f9be26 commit 66352d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/compiler-sfc/src/compileScript.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ type FromNormalScript = { __fromNormalScript?: boolean }
132132

133133
type PropsDeclType = (TSTypeLiteral | TSInterfaceBody) & FromNormalScript
134134

135-
type EmitsDescType = (TSFunctionType | TSTypeLiteral | TSInterfaceBody) & FromNormalScript
135+
type EmitsDeclType = (TSFunctionType | TSTypeLiteral | TSInterfaceBody) & FromNormalScript
136136

137137
/**
138138
* Compile `<script setup>`
@@ -277,7 +277,7 @@ export function compileScript(
277277
let propsTypeDeclRaw: Node | undefined
278278
let propsIdentifier: string | undefined
279279
let emitsRuntimeDecl: Node | undefined
280-
let emitsTypeDecl: EmitsDescType | undefined
280+
let emitsTypeDecl: EmitsDeclType | undefined
281281
let emitsTypeDeclRaw: Node | undefined
282282
let emitIdentifier: string | undefined
283283
let hasAwait = false
@@ -510,7 +510,7 @@ export function compileScript(
510510
emitsTypeDecl = resolveQualifiedType(
511511
emitsTypeDeclRaw,
512512
node => node.type === 'TSFunctionType' || node.type === 'TSTypeLiteral'
513-
) as EmitsDescType | undefined
513+
) as EmitsDeclType | undefined
514514

515515
if (!emitsTypeDecl) {
516516
error(

0 commit comments

Comments
 (0)