From f46519994615703a6433036d06e1a457794ed92f Mon Sep 17 00:00:00 2001 From: Yang Mingshan Date: Sat, 11 Jan 2020 00:46:34 +0800 Subject: [PATCH] types: fix setup this type (#605) --- packages/runtime-core/src/apiOptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/runtime-core/src/apiOptions.ts b/packages/runtime-core/src/apiOptions.ts index b306943f..ad1ab867 100644 --- a/packages/runtime-core/src/apiOptions.ts +++ b/packages/runtime-core/src/apiOptions.ts @@ -51,7 +51,7 @@ export interface ComponentOptionsBase< M extends MethodOptions > extends LegacyOptions, SFCInternalOptions { setup?: ( - this: null, + this: void, props: Props, ctx: SetupContext ) => RawBindings | RenderFunction | void @@ -82,7 +82,7 @@ export type ComponentOptionsWithoutProps< D = {}, C extends ComputedOptions = {}, M extends MethodOptions = {} -> = ComponentOptionsBase & { +> = ComponentOptionsBase, RawBindings, D, C, M> & { props?: undefined } & ThisType>>