atomic-fns 0.3.5 → 0.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +1 -12
  2. package/{core → dist}/collections/BTree.d.ts +6 -6
  3. package/{core → dist}/collections/BTree.js +17 -17
  4. package/{core → dist}/collections/Heap.d.ts +3 -3
  5. package/{core → dist}/collections/Heap.js +0 -0
  6. package/dist/collections/LRUCache.d.ts +80 -0
  7. package/dist/collections/LRUCache.js +126 -0
  8. package/{core → dist}/collections/SortedMap.d.ts +2 -2
  9. package/{core → dist}/collections/SortedMap.js +0 -0
  10. package/{core → dist}/collections/SortedSet.d.ts +3 -3
  11. package/{core → dist}/collections/SortedSet.js +1 -1
  12. package/{core → dist}/collections/SortedTree.d.ts +3 -3
  13. package/{core → dist}/collections/SortedTree.js +1 -1
  14. package/{core → dist}/collections/SplayTree.d.ts +5 -5
  15. package/{core → dist}/collections/SplayTree.js +0 -0
  16. package/{core → dist}/collections/abc.d.ts +0 -0
  17. package/{core → dist}/collections/abc.js +0 -0
  18. package/{core → dist}/collections/deque.d.ts +7 -7
  19. package/{core → dist}/collections/deque.js +6 -8
  20. package/{core → dist}/collections/frozenset.d.ts +0 -0
  21. package/{core → dist}/collections/frozenset.js +3 -6
  22. package/{core → dist}/collections/index.d.ts +207 -105
  23. package/{core → dist}/collections/index.js +179 -436
  24. package/{core → dist}/functools/index.d.ts +30 -16
  25. package/{core → dist}/functools/index.js +34 -12
  26. package/dist/globals/decimal.d.ts +142 -0
  27. package/dist/globals/decimal.js +371 -0
  28. package/{core → dist}/globals/index.d.ts +26 -25
  29. package/{core → dist}/globals/index.js +16 -37
  30. package/dist/i18n/currency.d.ts +24 -0
  31. package/dist/i18n/currency.js +85 -0
  32. package/dist/i18n/date/index.d.ts +204 -0
  33. package/dist/i18n/date/index.js +530 -0
  34. package/dist/i18n/date/utils.d.ts +65 -0
  35. package/dist/i18n/date/utils.js +290 -0
  36. package/dist/i18n/duration.d.ts +112 -0
  37. package/dist/i18n/duration.js +392 -0
  38. package/dist/i18n/format.d.ts +26 -0
  39. package/dist/i18n/format.js +495 -0
  40. package/{core → dist}/i18n/index.d.ts +2 -1
  41. package/{core → dist}/i18n/index.js +2 -1
  42. package/{core → dist}/index.d.ts +0 -0
  43. package/{core → dist}/index.js +0 -0
  44. package/{core → dist}/itertools/index.d.ts +74 -46
  45. package/{core → dist}/itertools/index.js +28 -56
  46. package/{core → dist}/math/index.d.ts +9 -10
  47. package/{core → dist}/math/index.js +3 -1
  48. package/{core → dist}/operators/index.d.ts +4 -4
  49. package/{core → dist}/operators/index.js +2 -8
  50. package/{core → dist}/random/index.d.ts +1 -1
  51. package/{core → dist}/random/index.js +5 -5
  52. package/package.json +28 -42
  53. package/.editorconfig +0 -12
  54. package/.esdoc.json +0 -27
  55. package/.eslintignore +0 -1
  56. package/.eslintrc.json +0 -35
  57. package/.firebaserc +0 -5
  58. package/.prettierrc +0 -19
  59. package/core/collections/BTree.ts +0 -1340
  60. package/core/collections/Heap.ts +0 -189
  61. package/core/collections/LRUCache.d.ts +0 -152
  62. package/core/collections/LRUCache.js +0 -409
  63. package/core/collections/LRUCache.ts +0 -486
  64. package/core/collections/SortedMap.ts +0 -146
  65. package/core/collections/SortedSet.ts +0 -110
  66. package/core/collections/SortedTree.ts +0 -160
  67. package/core/collections/SplayTree.ts +0 -354
  68. package/core/collections/abc.ts +0 -176
  69. package/core/collections/deque.ts +0 -338
  70. package/core/collections/frozenset.ts +0 -37
  71. package/core/collections/index.ts +0 -1024
  72. package/core/collections/test.html +0 -10
  73. package/core/collections/typedArrays.d.ts +0 -31
  74. package/core/collections/typedArrays.js +0 -143
  75. package/core/collections/typedArrays.ts +0 -163
  76. package/core/functools/index.ts +0 -260
  77. package/core/globals/index.ts +0 -481
  78. package/core/i18n/date/format.d.ts +0 -16
  79. package/core/i18n/date/format.js +0 -307
  80. package/core/i18n/date/format.ts +0 -343
  81. package/core/i18n/date/index.d.ts +0 -224
  82. package/core/i18n/date/index.js +0 -387
  83. package/core/i18n/date/index.ts +0 -471
  84. package/core/i18n/date/test.html +0 -67
  85. package/core/i18n/index.ts +0 -8
  86. package/core/index.ts +0 -8
  87. package/core/itertools/index.ts +0 -494
  88. package/core/math/index.ts +0 -152
  89. package/core/operators/index.ts +0 -310
  90. package/core/random/index.ts +0 -66
  91. package/firebase.json +0 -10
  92. package/jasmine.json +0 -14
  93. package/tests/BTree.spec.ts +0 -143
  94. package/tests/Cache.spec.ts +0 -161
  95. package/tests/Heap.spec.ts +0 -66
  96. package/tests/SortedMap.spec.ts +0 -144
  97. package/tests/SortedSet.spec.ts +0 -84
  98. package/tests/SortedTree.spec.ts +0 -164
  99. package/tests/SplayTree.spec.ts +0 -121
  100. package/tests/collections.spec.ts +0 -288
  101. package/tests/deque.spec.ts +0 -107
  102. package/tests/globals.spec.ts +0 -270
  103. package/tests/itertools.spec.ts +0 -266
  104. package/tests/math.spec.ts +0 -25
  105. package/tests/operators.spec.ts +0 -40
  106. package/tests/random.spec.ts +0 -46
  107. package/tsconfig.json +0 -126
  108. package/tsconfig.node.json +0 -18
  109. package/tsconfig.xo.json +0 -9
@@ -1,266 +0,0 @@
1
- import assert from 'assert'
2
- import {
3
- accumulate,
4
- all,
5
- any,
6
- chain,
7
- contains,
8
- dropWhile,
9
- enumerate,
10
- first,
11
- flatMap,
12
- icompact,
13
- ifilter,
14
- iflatten,
15
- imap,
16
- islice,
17
- itake,
18
- partition,
19
- range,
20
- reduce,
21
- reversed,
22
- sort,
23
- sorted,
24
- take,
25
- takeWhile,
26
- times,
27
- zip
28
- } from '../core/itertools/index.js'
29
- import { max } from '../core/math/index.js'
30
-
31
- const Falsy = (x) => !x
32
-
33
- describe('operators', () => {
34
- it('accumulate', () => {
35
- assert.deepEqual([...accumulate([1, 2, 3, 4])], [1, 3, 6, 10])
36
- assert.deepEqual(
37
- [...accumulate([3, 4, 6, 2, 1, 9, 0, 7, 5, 8], (x, y) => max([x, y]))],
38
- [3, 4, 6, 6, 6, 9, 9, 9, 9, 9]
39
- )
40
- })
41
-
42
- it('all', () => {
43
- assert(all([1, true, [], 'test', {}]))
44
- assert(!all([[], {}, '']))
45
- assert(all<any>([false, 0, '', null, undefined, NaN], Falsy))
46
- })
47
-
48
- it('any', () => {
49
- assert(any([1, true, [], 'test', {}]))
50
- assert(!any([0, false, '']))
51
- assert(any([0, false, ''], Falsy))
52
- })
53
-
54
- it('chain', () => {
55
- let it = chain([1, 3, 5], [2, 4, 6])
56
- assert.deepEqual([...it], [1, 3, 5, 2, 4, 6])
57
- })
58
-
59
- it('contains', () => {
60
- assert(contains([4, 7, 1, 9], 1))
61
- assert(!contains([4, 7, 1, 9], NaN))
62
- })
63
-
64
- it('dropWhile', () => {
65
- let it = dropWhile([false, 0, '', true, '', []], Falsy)
66
- assert.deepEqual([...it], [true, '', []])
67
- })
68
-
69
- it('enumerate', () => {
70
- let iter = enumerate(['foo', 'bar', 'baz'])
71
- let values = [...iter]
72
- assert.deepEqual(values, [
73
- [0, 'foo'],
74
- [1, 'bar'],
75
- [2, 'baz']
76
- ])
77
- })
78
-
79
- it('first', () => {
80
- assert(first(['foo', 'bar']) === 'foo')
81
- assert(first([0, 1]) === 0)
82
- assert(first([1, 1]) === 1)
83
- })
84
-
85
- it('flatMap', () => {
86
- assert.deepEqual(
87
- [
88
- ...flatMap([
89
- [1, 2],
90
- [3, 4]
91
- ])
92
- ],
93
- [1, 2, 3, 4]
94
- )
95
- assert.deepEqual(
96
- [
97
- ...flatMap(
98
- [
99
- [1, 2],
100
- [3, 4]
101
- ],
102
- ([x, y]) => [x * 2, y * 2]
103
- )
104
- ],
105
- [2, 4, 6, 8]
106
- )
107
- })
108
-
109
- it('icompact', () => {
110
- let it = icompact([false, 0, '', true, '', []])
111
- assert.deepEqual([...it], [true])
112
- })
113
-
114
- it('ifilter', () => {
115
- let users = [
116
- { user: 'barney', age: 36, active: true },
117
- { user: 'fred', age: 40, active: false }
118
- ]
119
- let it = ifilter(users, (x) => !x.active)
120
- assert.deepEqual([...it], [users[1]])
121
- })
122
-
123
- it('iflatten', () => {
124
- let it = iflatten([
125
- [0, 1],
126
- [2, 3]
127
- ])
128
- assert.deepEqual([...it], [0, 1, 2, 3])
129
- })
130
-
131
- it('imap', () => {
132
- let it = imap([0, 1, 2, 3], (x) => 2 ** x)
133
- assert.deepEqual([...it], [1, 2, 4, 8])
134
- })
135
-
136
- it('islice', () => {
137
- assert.deepEqual([...islice([1, 2, 3], 1)], [2, 3])
138
- assert.deepEqual([...islice([1, 2, 3, 4], 2)], [3, 4])
139
- assert.deepEqual([...islice([1, 2, 3, 4], 1, 3)], [2, 3])
140
- assert.deepEqual([...islice([1, 2, 3, 4, 5], 0, 4)], [1, 2, 3, 4])
141
- assert.deepEqual([...islice([1, 2, 3, 4, 5], 0, 4, 2)], [1, 3])
142
- })
143
-
144
- it('itake', () => {
145
- let it = itake(3, [false, 0, '', true, '', []])
146
- assert.deepEqual([...it], [false, 0, ''])
147
- })
148
-
149
- it('take', () => {
150
- let it = take(3, [false, 0, '', true, '', []])
151
- assert.deepEqual(it, [false, 0, ''])
152
- })
153
-
154
- it('partition', () => {
155
- let [A, B] = partition([false, 0, '', true, '', []], Falsy)
156
- assert.deepEqual(A, [false, 0, '', ''])
157
- assert.deepEqual(B, [true, []])
158
- })
159
-
160
- it('range', () => {
161
- assert.deepEqual([...range(0)], [])
162
- assert.deepEqual([...range(4)], [0, 1, 2, 3])
163
- assert.deepEqual([...range(-4)], [0, -1, -2, -3])
164
- assert.deepEqual([...range(0, -4, -1)], [0, -1, -2, -3])
165
- assert.deepEqual([...range(1, 5)], [1, 2, 3, 4])
166
- assert.deepEqual([...range(0, 20, 5)], [0, 5, 10, 15])
167
- })
168
-
169
- it('reduce', () => {
170
- assert(reduce([1, 2, 3, 4, 5], (x, y) => x + y, 0) === 15)
171
- })
172
-
173
- it('reversed', () => {
174
- let arr = [3, 2, 1]
175
- let reverse = reversed(arr)
176
- arr.reverse()
177
- assert.deepEqual(arr, reverse)
178
- })
179
-
180
- it('sort', () => {
181
- let arr = [3, 2, 1]
182
- assert.deepEqual(sort(arr), [1, 2, 3])
183
- })
184
-
185
- it('sort reversed', () => {
186
- let arr = [3, 1, 2]
187
- assert.deepEqual(sort(arr, true), [3, 2, 1])
188
- })
189
-
190
- it('sorted', () => {
191
- let arr = [3, 2, 1]
192
- assert.deepEqual(sorted(arr), arr.sort())
193
- // sorted in reverse
194
- assert.deepEqual(sorted([3, 1, 2], true), [3, 2, 1])
195
- })
196
-
197
- it('sorted by key', () => {
198
- let users = [
199
- { user: 'fred', age: 40 },
200
- { user: 'barney', age: 36 }
201
- ]
202
- // compare by age key
203
- assert.deepEqual(
204
- sorted(users, (u) => u.age),
205
- [
206
- { user: 'barney', age: 36 },
207
- { user: 'fred', age: 40 }
208
- ]
209
- )
210
- // using key and reverse
211
- assert.deepEqual(
212
- sorted(users, (u) => u.age, true),
213
- [
214
- { user: 'fred', age: 40 },
215
- { user: 'barney', age: 36 }
216
- ]
217
- )
218
- })
219
-
220
- it('sorted with custom compare', () => {
221
- let users = [
222
- { user: 'fred', age: 40 },
223
- { user: 'barney', age: 36 }
224
- ]
225
- assert.deepEqual(
226
- sorted(users, false, (x, y) => (x.user <= y.user ? -1 : 1)),
227
- [
228
- { user: 'barney', age: 36 },
229
- { user: 'fred', age: 40 }
230
- ]
231
- )
232
- })
233
-
234
- it('times', () => {
235
- let arr = [...times(5, (x) => x)]
236
- assert.deepEqual(arr, [0, 1, 2, 3, 4])
237
- })
238
-
239
- it('takeWhile', () => {
240
- let arr = [...takeWhile([1, 2, 3, 4], (x) => x < 4)]
241
- assert.deepEqual(arr, [1, 2, 3])
242
- arr = [...takeWhile([1, 2, 3, 4, 5], (x) => x)]
243
- assert.deepEqual(arr, [1, 2, 3, 4, 5])
244
- })
245
-
246
- it('zip', () => {
247
- let users1 = [
248
- { user: 'barney', age: 36 },
249
- { user: 'fred', age: 40 }
250
- ]
251
- let users2 = [
252
- { user: 'fred', age: 40 },
253
- { user: 'barney', age: 36 }
254
- ]
255
-
256
- let results = [...zip(users1, users2)]
257
-
258
- let [first1, first2] = results[0]
259
- assert(first1 === users1[0])
260
- assert(first2 === users2[0])
261
-
262
- let [second1, second2] = results[1]
263
- assert(second1 === users1[1])
264
- assert(second2 === users2[1])
265
- })
266
- })
@@ -1,25 +0,0 @@
1
- import assert from 'assert'
2
- import { max, min, round, sum } from '../core/math/index.js'
3
-
4
- describe('math', () => {
5
- it('min', () => {
6
- assert(min([5, 4, 3, 1, 2]) === 1)
7
- })
8
-
9
- it('max', () => {
10
- assert(max([7, 9, 3, 11]) === 11)
11
- })
12
-
13
- it('round', () => {
14
- assert(round(0.5) === 1)
15
- assert(round(-0.5) === 0)
16
- assert(round(1.5) === 2)
17
- assert(round(1.54, 2) === 1.54)
18
- assert(round(1.545, 3) === 1.545)
19
- })
20
-
21
- it('sum', () => {
22
- assert(sum([]) === 0)
23
- assert(sum([1, 2, 3, 4]) === 10)
24
- })
25
- })
@@ -1,40 +0,0 @@
1
- import assert from 'assert'
2
- import { bool, id, isinstance, not, compare, shallowEqual } from '../core/operators/index.js'
3
-
4
- describe('operators', () => {
5
- it('id', () => {
6
- assert(id(true) === true)
7
- assert(id(false) === false)
8
- assert(id(3.0) === 3.0)
9
- assert(id('') === '')
10
- assert(id(Object) === Object)
11
- })
12
-
13
- it('bool', () => {
14
- assert(bool(1))
15
- assert(bool(true))
16
- assert(bool(false) === false)
17
- assert(not(false))
18
- assert(not(''))
19
- })
20
-
21
- it('compare', () => {
22
- assert(compare(1, 1) === 0)
23
- assert(compare(2, 3) === -1)
24
- assert(compare(4, 3) === 1)
25
- })
26
-
27
- it('isinstance', () => {
28
- assert(isinstance([], Array))
29
- assert(isinstance(Array(), Array))
30
- assert(isinstance(Object(), Object))
31
- assert(isinstance(new Set(), Set))
32
- assert(isinstance(new Map(), Map))
33
- })
34
-
35
- it('shallowEqual', () => {
36
- assert(shallowEqual({}, {}))
37
- assert(shallowEqual([], []))
38
- assert(shallowEqual({ test: true }, { test: true }))
39
- })
40
- })
@@ -1,46 +0,0 @@
1
- import assert from 'assert'
2
- import { any, times } from '../core/itertools/index.js'
3
- import { choice, random, randomInt, sample, shuffle } from '../core/random/index.js'
4
-
5
- const randomArr = () => [...times(100, (i) => randomInt(i, 100))]
6
-
7
- describe('random', () => {
8
- it('choice', () => {
9
- let arr = randomArr()
10
- for (let i = 0; i < 100; i++) {
11
- assert(arr.includes(choice(arr)))
12
- }
13
- })
14
-
15
- it('random', () => {
16
- for (let i = 1; i <= 100; i++) {
17
- let r = random(0, i)
18
- assert(0 <= r && r < i)
19
- }
20
- })
21
-
22
- it('randomInt', () => {
23
- for (let i = 1; i <= 100; i++) {
24
- let r = randomInt(0, i)
25
- assert(0 <= r && r <= i)
26
- }
27
- })
28
-
29
- it('shuffle', () => {
30
- let arr = randomArr()
31
- let copy = arr.slice()
32
- for (let i = 0; i < 100; i++) {
33
- assert(shuffle(copy) === copy)
34
- assert(copy.some((x, i) => x !== arr[i]))
35
- }
36
- })
37
-
38
- it('sample', () => {
39
- let arr = randomArr()
40
- for (let i = 0; i < 100; i++) {
41
- let s = sample(arr, 30)
42
- assert(s.length === 30)
43
- assert(s.some((x, i) => x !== arr[i]))
44
- }
45
- })
46
- })
package/tsconfig.json DELETED
@@ -1,126 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- /* Visit https://aka.ms/tsconfig to read more about this file */
4
- /* Projects */
5
- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
6
- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
7
- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
8
- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
9
- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
10
- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
11
- /* Language and Environment */
12
- "target": "ES2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
13
- "lib": [
14
- "ESNext",
15
- "ES2022",
16
- "DOM"
17
- ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
18
- // "jsx": "preserve", /* Specify what JSX code is generated. */
19
- // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
20
- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
21
- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
22
- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
23
- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
24
- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
25
- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
26
- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
27
- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
28
- /* Modules */
29
- "module": "ESNext", /* Specify what module code is generated. */
30
- "rootDir": "core", /* Specify the root folder within your source files. */
31
- "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
32
- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
33
- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
34
- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
35
- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
36
- // "types": [], /* Specify type package names to be included without being referenced in a source file. */
37
- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
38
- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
39
- // "resolveJsonModule": true, /* Enable importing .json files. */
40
- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
41
- /* JavaScript Support */
42
- "allowJs": false, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
43
- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
44
- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
45
- /* Emit */
46
- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
47
- // "declarationMap": true, /* Create sourcemaps for d.ts files. */
48
- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
49
- // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
50
- // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
51
- // "outDir": "./build", /* Specify an output folder for all emitted files. */
52
- // "removeComments": true, /* Disable emitting comments. */
53
- // "noEmit": true, /* Disable emitting files from a compilation. */
54
- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
55
- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
56
- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
57
- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
58
- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
59
- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
60
- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
61
- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
62
- // "newLine": "crlf", /* Set the newline character for emitting files. */
63
- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
64
- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
65
- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
66
- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
67
- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
68
- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
69
- /* Interop Constraints */
70
- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
71
- "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
72
- "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
73
- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
74
- "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
75
- /* Type Checking */
76
- "strict": true, /* Enable all strict type-checking options. */
77
- "noImplicitAny": false, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
78
- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
79
- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
80
- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
81
- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
82
- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
83
- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
84
- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
85
- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
86
- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
87
- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
88
- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
89
- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
90
- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
91
- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
92
- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
93
- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
94
- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
95
- /* Completeness */
96
- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
97
- "skipLibCheck": true /* Skip type checking all .d.ts files. */
98
- },
99
- "exclude": [
100
- "**/*.spec.ts"
101
- ],
102
- "references": [
103
- {
104
- "path": "./tsconfig.node.json"
105
- }
106
- ],
107
- "typedocOptions": {
108
- "entryPoints": [
109
- "./core/globals/index.ts",
110
- "./core/collections/index.ts",
111
- "./core/datetime/index.ts",
112
- "./core/functools/index.ts",
113
- "./core/i18n/index.ts",
114
- "./core/itertools/index.ts",
115
- "./core/math/index.ts",
116
- "./core/operators/index.ts",
117
- "./core/random/index.ts",
118
- ],
119
- "out": "docs",
120
- "exclude": [
121
- "node_modules"
122
- ],
123
- "excludeExternals": true,
124
- "excludePrivate": true,
125
- }
126
- }
@@ -1,18 +0,0 @@
1
- {
2
- "include": [
3
- "core"
4
- ],
5
- "compilerOptions": {
6
- "composite": true,
7
- "module": "ESNext",
8
- "moduleResolution": "Node",
9
- "allowSyntheticDefaultImports": true,
10
- "lib": [
11
- "ESNext"
12
- ],
13
- "target": "ESNext"
14
- },
15
- "exclude": [
16
- "build"
17
- ]
18
- }
package/tsconfig.xo.json DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "extends": "./tsconfig.json",
3
- "include": [
4
- "core"
5
- ],
6
- "exclude": [
7
- "build"
8
- ]
9
- }