Skip to content

Commit

Permalink
fix(taro.component): 修改类组件构造器定义,保持向后兼容
Browse files Browse the repository at this point in the history
  • Loading branch information
Garfield550 committed Dec 3, 2019
1 parent 57c3346 commit e8eb71e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/taro/types/taro.component.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ declare namespace Taro {
}

class Component<P, S> {
constructor(props: Readonly<P>)
constructor(props?: Readonly<P>)
/**
* @deprecated
* @see https://reactjs.org/docs/legacy-context.html
*/
constructor(props: P, context?: any)
constructor(props?: P, context?: any)

config?: Config

Expand Down

0 comments on commit e8eb71e

Please sign in to comment.