Skip to content

Commit 8310e56

Browse files
committed
fix: types
1 parent 9fa6fc3 commit 8310e56

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/compiler-sfc/src/compileScript.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const DEFINE_EMITS = 'defineEmits'
6767
const DEFINE_EXPOSE = 'defineExpose'
6868
const WITH_DEFAULTS = 'withDefaults'
6969
const DEFINE_OPTIONS = 'defineOptions'
70-
const DEFINT_SLOTS = 'defineSlots'
70+
const DEFINE_SLOTS = 'defineSlots'
7171

7272
const isBuiltInDir = makeMap(
7373
`once,memo,if,for,else,else-if,slot,text,html,on,bind,model,show,cloak,is`
@@ -593,11 +593,11 @@ export function compileScript(
593593
}
594594

595595
function processDefineSlots(node: Node, declId?: LVal): boolean {
596-
if (!isCallOf(node, DEFINT_SLOTS)) {
596+
if (!isCallOf(node, DEFINE_SLOTS)) {
597597
return false
598598
}
599599
if (hasDefineSlotsCall) {
600-
error(`duplicate ${DEFINT_SLOTS}() call`, node)
600+
error(`duplicate ${DEFINE_SLOTS}() call`, node)
601601
}
602602
hasDefineSlotsCall = true
603603

packages/runtime-core/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export {
6969
defineEmits,
7070
defineExpose,
7171
defineOptions,
72+
defineSlots,
7273
withDefaults,
7374
// internal
7475
mergeDefaults,

0 commit comments

Comments
 (0)