diff --git a/packages/runtime-core/src/apiSetupHelpers.ts b/packages/runtime-core/src/apiSetupHelpers.ts index 509c280d63b..e3910182509 100644 --- a/packages/runtime-core/src/apiSetupHelpers.ts +++ b/packages/runtime-core/src/apiSetupHelpers.ts @@ -94,7 +94,7 @@ export function defineProps() { return null as any } -type DefineProps = Readonly & { +export type DefineProps = Readonly & { readonly [K in BKeys]-?: boolean } diff --git a/packages/runtime-core/src/index.ts b/packages/runtime-core/src/index.ts index 4c36250683e..ab86bfce7dc 100644 --- a/packages/runtime-core/src/index.ts +++ b/packages/runtime-core/src/index.ts @@ -60,7 +60,7 @@ export { provide, inject, hasInjectionContext } from './apiInject' export { nextTick } from './scheduler' export { defineComponent } from './apiDefineComponent' export { defineAsyncComponent } from './apiAsyncComponent' -export { useAttrs, useSlots } from './apiSetupHelpers' +export { useAttrs, useSlots, type DefineProps } from './apiSetupHelpers' //