From b7c7211e560f5966a563dc393ca6f30321a6416b Mon Sep 17 00:00:00 2001 From: Yakin Nikita Date: Thu, 29 Apr 2021 09:08:35 +0500 Subject: [PATCH] types: expose ComponentPropsOptions types to align with vue-next (#688) --- src/component/componentOptions.ts | 2 +- src/component/index.ts | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/component/componentOptions.ts b/src/component/componentOptions.ts index 9a177382..eb8f7edb 100644 --- a/src/component/componentOptions.ts +++ b/src/component/componentOptions.ts @@ -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[] }> diff --git a/src/component/index.ts b/src/component/index.ts index 86a79ee3..86484560 100644 --- a/src/component/index.ts +++ b/src/component/index.ts @@ -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 {