Skip to content

Commit

Permalink
types: expose ComponentPropsOptions types to align with vue-next (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
TakNePoidet committed Apr 29, 2021
1 parent 37fcbaa commit b7c7211
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/component/componentOptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Vue, { VNode, ComponentOptions as Vue2ComponentOptions } from 'vue'
import { Data } from './common'
import { ComponentPropsOptions, ExtractPropTypes } from './componentProps'
import { ComponentInstance, ComponentRenderProxy } from './componentProxy'

export { ComponentPropsOptions } from './componentProps'
export interface SetupContext {
readonly attrs: Data
readonly slots: Readonly<{ [key in string]?: (...args: any[]) => VNode[] }>
Expand Down
8 changes: 7 additions & 1 deletion src/component/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
export { defineComponent } from './defineComponent'
export { defineAsyncComponent } from './defineAsyncComponent'
export { SetupFunction, SetupContext } from './componentOptions'
export {
SetupFunction,
SetupContext,
ComputedOptions,
MethodOptions,
ComponentPropsOptions,
} from './componentOptions'
export { ComponentInstance, ComponentRenderProxy } from './componentProxy'
export { Data } from './common'
export {
Expand Down

0 comments on commit b7c7211

Please sign in to comment.