-
Notifications
You must be signed in to change notification settings - Fork 42
/
namespace_all.js
132 lines (112 loc) · 1.97 KB
/
namespace_all.js
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
/** @module namespaces */
/**
* @namespace FoobarNS
*/
/**
* @classdesc
* A Foo.
*
* @constructor
* @template T
*/
FoobarNS.Foo = function Foo() {
};
/**
* @callback FCallback
* @this S
* @memberof module:namespaces~FoobarNS.Foo
* @param {T} first - The first param.
* @param {number} second - The second param.
* @param {T[]} third - The third param.
* @returns {*}
*/
/**
* A generic method.
* @param {FoobarNS.Foo.FCallback} f A function.
* @param {number} [opt_this=10] An object.
* @param {number[]|object<number, string[]>} [opt_2=10] An object.
* @template S
*/
FoobarNS.Foo.prototype.f = function f(f, opt_this, ...rest) {
};
/**
* @classdesc
* A Bar.
*
* @constructor
* @extends FoobarNS.Foo
*/
FoobarNS.Bar = function Bar() {
}
/**
* A method.
* Seems that when FoobarNS is declared in a module, jsdoc does not detect the override of of Foo.f() automatically anymore.
* Let's tell jsdoc explicitely.
* @override
*/
FoobarNS.Bar.prototype.f = function f() {
};
/**
* @interface
*/
FoobarNS.CircleOptions;
/**
* Circle radius.
* @type {number}
*/
FoobarNS.CircleOptions.prototype.radius;
/**
* @classdesc
* Set circle style for vector features.
*
* @constructor
* @param {FoobarNS.CircleOptions=} opt_options Options.
*/
FoobarNS.Circle = function Circle(opt_options) {
}
/**
* @member {Number}
*/
FoobarNS.helloWorld1 = 1;
/**
* @type {Boolean}
*/
FoobarNS.helloWorld2 = true;
/**
* @constant
* @type {String}
*/
FoobarNS.helloWorld3 = foobar;
/**
* @constant
* @type {Number}
*/
FoobarNS.helloWorld4 = foobar;
/**
* @constant
* @type {Boolean}
*/
FoobarNS.helloWorld5 = foobar;
/**
* @constant
* @type {Object}
*/
FoobarNS.helloWorld6 = {hello: "world", test: 7.0, foo: "bar"};
/**
* @constant
* @type {String}
*/
FoobarNS.helloWorld7 = "test";
/**
* @constant
* @type {Number}
*/
FoobarNS.helloWorld8 = 1.2345;
/**
* @constant
* @type {Boolean}
*/
FoobarNS.helloWorld9 = true;
module.exports = {
FoobarNS: FoobarNS
}