Skip to content

Instantly share code, notes, and snippets.

@codeliner
Created August 9, 2017 06:35
Show Gist options
  • Save codeliner/a094a703afd038c4831f93f8025a5d4b to your computer and use it in GitHub Desktop.
Save codeliner/a094a703afd038c4831f93f8025a5d4b to your computer and use it in GitHub Desktop.
React TS app to reproduce TS inspection errors in PhpStorm
{
"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"
}
}
import React from 'react'
interface ReactTestProps {foo: string, bar: string}
class ReactTest extends React.Component<ReactTestProps, {}> {
constructor(props: ReactTestProps) {
super(props)
}
}
@heshamelmasry77
Copy link

is there a solution for this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment