Skip to content

Instantly share code, notes, and snippets.

@thejhh
Created May 11, 2019 17:47
Show Gist options
  • Select an option

  • Save thejhh/cc36650e5465b6fcd283303b49a330f9 to your computer and use it in GitHub Desktop.

Select an option

Save thejhh/cc36650e5465b6fcd283303b49a330f9 to your computer and use it in GitHub Desktop.
ES6 and interfaces in WebStorm
/**
* @interface
*/
class Foo {
/**
* @returns {string}
*/
foo () {
}
}
export default Foo;
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