Skip to content

Commit 9f1ce62

Browse files
committed
fix: types
1 parent 4e10d69 commit 9f1ce62

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
@@ -68,7 +68,7 @@ const DEFINE_EMITS = 'defineEmits'
6868
const DEFINE_EXPOSE = 'defineExpose'
6969
const WITH_DEFAULTS = 'withDefaults'
7070
const DEFINE_OPTIONS = 'defineOptions'
71-
const DEFINT_SLOTS = 'defineSlots'
71+
const DEFINE_SLOTS = 'defineSlots'
7272

7373
const isBuiltInDir = makeMap(
7474
`once,memo,if,for,else,else-if,slot,text,html,on,bind,model,show,cloak,is`
@@ -610,11 +610,11 @@ export function compileScript(
610610
}
611611

612612
function processDefineSlots(node: Node, declId?: LVal): boolean {
613-
if (!isCallOf(node, DEFINT_SLOTS)) {
613+
if (!isCallOf(node, DEFINE_SLOTS)) {
614614
return false
615615
}
616616
if (hasDefineSlotsCall) {
617-
error(`duplicate ${DEFINT_SLOTS}() call`, node)
617+
error(`duplicate ${DEFINE_SLOTS}() call`, node)
618618
}
619619
hasDefineSlotsCall = true
620620

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)