From e8eb71ed395c9d682a834502c1b93e92a144caff Mon Sep 17 00:00:00 2001 From: Garfield Lee Date: Tue, 3 Dec 2019 10:28:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(taro.component):=20=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E7=B1=BB=E7=BB=84=E4=BB=B6=E6=9E=84=E9=80=A0=E5=99=A8=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=EF=BC=8C=E4=BF=9D=E6=8C=81=E5=90=91=E5=90=8E=E5=85=BC?= =?UTF-8?q?=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro/types/taro.component.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/taro/types/taro.component.d.ts b/packages/taro/types/taro.component.d.ts index 82f8b6eff5dd..2f8779eccbc3 100644 --- a/packages/taro/types/taro.component.d.ts +++ b/packages/taro/types/taro.component.d.ts @@ -88,12 +88,12 @@ declare namespace Taro { } class Component { - constructor(props: Readonly

) + constructor(props?: Readonly

) /** * @deprecated * @see https://reactjs.org/docs/legacy-context.html */ - constructor(props: P, context?: any) + constructor(props?: P, context?: any) config?: Config