Skip to content

Fixes for #97 and #103 react.d.ts needs to be updated#101

Merged
developit merged 2 commits intodevelopit:masterfrom
namankheterpal:patch-1
Aug 29, 2018
Merged

Fixes for #97 and #103 react.d.ts needs to be updated#101
developit merged 2 commits intodevelopit:masterfrom
namankheterpal:patch-1

Conversation

@namankheterpal
Copy link
Contributor

As React is being imported as import * as React from "react"; So extends Component will give reference error in Typescript. The correct way to refer is by React.Component

As `React` is being imported as `import * as React from "react";` So `extends Component` will give reference error in Typescript. The correct way to refer is by `React.Component`
Fix! these changes will solve the issue #103. Current definition file is giving type mismatch error with stateful components. With this both `connect` decorator and function are working fine.
@namankheterpal namankheterpal changed the title Component should be referred from React Fixes for #97 and #103 react.d.ts needs to be updated Jul 18, 2018
@developit developit merged commit f2472fa into developit:master Aug 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants