documentation/test/fixture/memberedclass.input.js
Tom MacWright 25152edeb9 style(prettier): Use prettier for code formatting (#710)
* style(prettier): Use prettier for code formatting

This saves us style issues. Also adds husky and lint-staged for pre-commit testing

Refs https://github.com/documentationjs/documentation/issues/709
2017-04-10 14:25:45 -04:00

29 lines
471 B
JavaScript

/**
* This is my class, a demo thing.
*
* @class MyClass
* @memberof com.Test
*/
com.Test.MyClass = class {
constructor() {
this.howMany = 2;
}
/**
* Get the number 42
*
* @param {boolean} getIt whether to get the number
* @returns {number} forty-two
*/
getFoo(getIt) {
return getIt ? 42 : 0;
}
/**
* Get undefined
*
* @returns {undefined} does not return anything.
*/
static getUndefined() {}
};