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