/
index.js
61 lines (50 loc) · 1.1 KB
/
index.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
/** */
/**
* not included anywhere
* @typedef {Object} InterfaceIsh
* @property {string} foo docs for property
* more docs for property
*/
/**
* @typedef {object} AlsoInterfaceIsh docs for interface
* @property {string} foo docs for property
* @prop {string} bar can also use prop tag
*/
/**
* @typedef {Object} ObjectAlias type alias since it doesn't have a property tag
*/
/**
* @typedef {string | number} UnionType docs for alias
* @typedef {{ x: string } & { y: number }} IntersectionType docs for alias
*/
/**
* @callback NoReturnTag even though in the same comment block
* @callback HasReturnTag
* @returns {string}
*/
/**
* @template T
* @callback IdentityFn
* @param {T} data
* @return {T} the data
*/
/**
* @callback OptionalArg
* @param {string} [data] an optional argument
*/
/**
* @template T comment on template
* @typedef {T} Identity comment on alias
*/
/**
* @callback Foo
* @param {...string} args
* @returns {number}
*/
/** @type {Foo} */
export const usedFoo = () => 1;
/** @enum {string} */
export const ColumnType = {
STRING: "string",
NUMBER: "number",
};