Skip to content

Commit 652ac28

Browse files
committed
fix: types
1 parent cae43f0 commit 652ac28

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/compiler-sfc/src/compileScript.ts

+3-3
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
// constants
7474
const DEFAULT_VAR = `__default__`
@@ -596,11 +596,11 @@ export function compileScript(
596596
}
597597

598598
function processDefineSlots(node: Node, declId?: LVal): boolean {
599-
if (!isCallOf(node, DEFINT_SLOTS)) {
599+
if (!isCallOf(node, DEFINE_SLOTS)) {
600600
return false
601601
}
602602
if (hasDefineSlotsCall) {
603-
error(`duplicate ${DEFINT_SLOTS}() call`, node)
603+
error(`duplicate ${DEFINE_SLOTS}() call`, node)
604604
}
605605
hasDefineSlotsCall = true
606606

packages/runtime-core/src/index.ts

+1
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)