Created
May 11, 2019 17:47
-
-
Save thejhh/cc36650e5465b6fcd283303b49a330f9 to your computer and use it in GitHub Desktop.
ES6 and interfaces in WebStorm
This file contains hidden or 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
| /** | |
| * @interface | |
| */ | |
| class Foo { | |
| /** | |
| * @returns {string} | |
| */ | |
| foo () { | |
| } | |
| } | |
| export default Foo; |
This file contains hidden or 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 "./Foo.js"; | |
| /** | |
| * @implements {Foo} | |
| */ | |
| class MyFoo { | |
| /** | |
| * @returns {string} | |
| */ | |
| foo () { | |
| return "foobar"; | |
| } | |
| } | |
| export default MyFoo; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment