documentation/__tests__/fixture/es6-class.input.js
Tom MacWright 11d9045a00 Native Flow, use Jest (#767)
* build: Use Flow syntax without comments.

We're switching to Flow annotations - not Flow comments. This
gives documentation.js the ability to self-document without
JSDoc types and improves our compatibility with tools like
prettier.

Fixes #729. Fixes #709
2017-05-08 20:46:21 -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>) {}
}