mirror of
https://github.com/documentationjs/documentation.git
synced 2025-12-08 18:23:43 +00:00
* 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
26 lines
429 B
JavaScript
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>) {}
|
|
}
|