Skip to content

Commit

Permalink
feat(types): expose DefineProps type
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz authored Dec 8, 2023
1 parent c95ab62 commit 096ba81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/runtime-core/src/apiSetupHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export function defineProps() {
return null as any
}

type DefineProps<T, BKeys extends keyof T> = Readonly<T> & {
export type DefineProps<T, BKeys extends keyof T> = Readonly<T> & {
readonly [K in BKeys]-?: boolean
}

Expand Down
2 changes: 1 addition & 1 deletion packages/runtime-core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'

// <script setup> API ----------------------------------------------------------

Expand Down

0 comments on commit 096ba81

Please sign in to comment.