Skip to content

Commit d81bf0b

Browse files
committed
fix: types
1 parent 3e7956f commit d81bf0b

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`
@@ -609,11 +609,11 @@ export function compileScript(
609609
}
610610

611611
function processDefineSlots(node: Node, declId?: LVal): boolean {
612-
if (!isCallOf(node, DEFINT_SLOTS)) {
612+
if (!isCallOf(node, DEFINE_SLOTS)) {
613613
return false
614614
}
615615
if (hasDefineSlotsCall) {
616-
error(`duplicate ${DEFINT_SLOTS}() call`, node)
616+
error(`duplicate ${DEFINE_SLOTS}() call`, node)
617617
}
618618
hasDefineSlotsCall = true
619619

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)