-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
29 lines (25 loc) · 769 Bytes
/
index.js
File metadata and controls
29 lines (25 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
class Filler {
static methodOne() {
return 'Method One';
}
nonStaticMethodTwo(param) {
return `Method Two received: ${param}`;
}
/**
* {@link methodOne} is reports eslint error - jsdoc/no-undefined-types
* {@link nonStaticMethodTwo} also reports eslint error - jsdoc/no-undefined-types
* @returns {number} A number representing the answer to everything.
*/
static methodThree() {
return 42;
}
/**
* {@link Filler.methodOne} doesn't report eslint error - jsdoc/no-undefined-types
* {@link Filler.nonStaticMethodTwo} also doesn't report eslint error - jsdoc/no-undefined-types
* @returns {string} A string indicating the method's purpose.
*/
methodFour() {
return 'Method Four';
}
}
export default Filler;