-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathindex.js
More file actions
88 lines (73 loc) · 1.82 KB
/
index.js
File metadata and controls
88 lines (73 loc) · 1.82 KB
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
/**
* @module test
*/
import NumberStore from './sub/NumberStore.js';
/**
* @param {import("proj4")} proj4 Proj4
*/
export function register(proj4) {
// code here
}
/**
* @param {import("geojson").Geometry} geometry The geometry.
* @return {Array<number>} The bounding box.
*/
export function getBounds(geometry) {
return [Infinity, Infinity, -Infinity, -Infinity];
}
/**
* @param {number} number A number.
* @return {import("./sub/NumberStore.js").default} A number store.
*/
export function getNumberStore(number) {
return new NumberStore({number});
}
/**
* @type {{a: number; b: string;c:{a:number},d: {a:number;b:string,c:number }; e: "{a: number; b: string;}"; }}
*/
export const interfaceSeparators = {
a: 1,
b: '2',
c: {a: 3},
d: {a: 4, b: '5', c: 6},
e: '{a: number; b: string;}',
};
/**
* @type {(...args: Parameters<typeof getNumberStore>) => void}
*/
export const tsFunctionSyntax = (...args) => {};
/**
* @type {(a: (() => void) | ((a: {a: string; b: number;}) => void)) => void}
*/
export const tsFunctionSyntaxNested = (...args) => {};
/**
* @type {function(number): void}
*/
export const jsdocFunctionSyntax = (...args) => {};
/**
* @type {interfaceSeparators['a']}
*/
export const bracketNotation = 1;
/** @type {[number, [number, string], "[number, boolean]"]} */
export const nesteedTuples = [1, [1, 'a'], '[number, boolean]'];
/** @type {{ foo?: string; bar: string?, baz ? : string? }} */
export const optionalProperties = {
foo: 'bar',
bar: null,
};
/**
* {@link NumberStore}
*/
export const Link = NumberStore;
/**
* {@link NumberStore Num}
*/
export const LinkWithText = NumberStore;
/**
* {@link NumberStore.getNumber}
*/
export const LinkWithMemberAccessor = NumberStore;
/**
* {@link NumberStore.getNumber Num}
*/
export const LinkWithMemberAccessorAndText = NumberStore;