documentation/test/fixture/es6-class.input.js
2017-04-24 19:16:34 -04:00

26 lines
429 B
JavaScript

/**
* This is my component. This is from issue #458
*/
class Foo extends React.Component {}
/**
* Does nothing. This is from issue #556
* @param {string} str
*/
export class Bar {
constructor(str) {
/**
* A useless property
* @type {string}
*/
this.bar = '';
}
}
/**
* This class has fully inferred constructor parameters.
*/
export class Baz {
constructor(n: number, l: Array<string>) {}
}