Created
August 9, 2017 06:35
-
-
Save codeliner/a094a703afd038c4831f93f8025a5d4b to your computer and use it in GitHub Desktop.
React TS app to reproduce TS inspection errors in PhpStorm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "react-ts-test", | |
"version": "1.0.0", | |
"description": "Test app to reproduce ts inspection error in PhpStorm", | |
"main": "index.js", | |
"author": "Alexander Miertsch <[email protected]>", | |
"license": "MIT", | |
"dependencies": { | |
"@types/react": "^16.0.1", | |
"react": "^15.6.1" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
interface ReactTestProps {foo: string, bar: string} | |
class ReactTest extends React.Component<ReactTestProps, {}> { | |
constructor(props: ReactTestProps) { | |
super(props) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
is there a solution for this ?