heavy-reactive 1.0.0

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 (55) hide show
  1. package/.commitlintrc +2 -0
  2. package/.editorconfig +17 -0
  3. package/.gitattributes +2 -0
  4. package/.github/workflows/check-code.yml +48 -0
  5. package/.github/workflows/lint-commit.yml +15 -0
  6. package/.github/workflows/lint-request.yml +19 -0
  7. package/.github/workflows/release-job.yml +62 -0
  8. package/.husky/commit-msg +18 -0
  9. package/.husky/pre-commit +18 -0
  10. package/.prettierignore +2 -0
  11. package/.prettierrc +9 -0
  12. package/.vscode/extensions.json +3 -0
  13. package/.vscode/settings.json +27 -0
  14. package/.vscode/tasks.json +25 -0
  15. package/CHANGELOG.md +1 -0
  16. package/CONTRIBUTING.md +116 -0
  17. package/GLOSSARY.md +144 -0
  18. package/LICENSE +21 -0
  19. package/README.md +198 -0
  20. package/feature.reactivity/_common/changes.interface.ts +44 -0
  21. package/feature.reactivity/_common/dictionary-changes.interface.ts +54 -0
  22. package/feature.reactivity/_common/observable.interface.ts +22 -0
  23. package/feature.reactivity/_common/set-changes.interface.ts +50 -0
  24. package/feature.reactivity/_common/value-change.interface.ts +54 -0
  25. package/feature.reactivity/_common/value-container.interface.ts +12 -0
  26. package/feature.reactivity/dictionary/reactive-array.class.ts +0 -0
  27. package/feature.reactivity/dictionary/reactive-map.class.ts +0 -0
  28. package/feature.reactivity/dictionary/reactive-object.class.ts +0 -0
  29. package/feature.reactivity/reactivity-disabled.error.ts +11 -0
  30. package/feature.reactivity/reactivity.module.ts +458 -0
  31. package/feature.reactivity/readonly-access.error.ts +13 -0
  32. package/feature.reactivity/set/$difference.class.ts +272 -0
  33. package/feature.reactivity/set/$intersection.class.ts +137 -0
  34. package/feature.reactivity/set/$set.class.ts +1022 -0
  35. package/feature.reactivity/set/$union.class.ts +74 -0
  36. package/feature.reactivity/set/_combination/$combination.class.ts +179 -0
  37. package/feature.reactivity/set/_combination/$variadic-combination.class.ts +235 -0
  38. package/feature.reactivity/set/feature.projection-sets/$complement-via-set.class.ts +159 -0
  39. package/feature.reactivity/set/feature.projection-sets/$complement-via-val.class.ts +126 -0
  40. package/feature.reactivity/set/feature.projection-sets/$set-from-any.class.ts +382 -0
  41. package/feature.reactivity/set/feature.projection-sets/$set-from-set.class.ts +90 -0
  42. package/feature.reactivity/set/feature.projection-sets/$subset-via-set.class.ts +123 -0
  43. package/feature.reactivity/set/feature.projection-sets/$subset-via-val.class.ts +114 -0
  44. package/feature.reactivity/set/feature.projection-sets/feature.reactive-delta-buffer/delta-buffer-for-set.class.ts +235 -0
  45. package/feature.reactivity/set/feature.projection-sets/feature.reactive-delta-buffer/delta-buffer-for-value.class.ts +193 -0
  46. package/feature.reactivity/set/feature.projection-sets/types/dependency-set-resolver.type.ts +19 -0
  47. package/feature.reactivity/set/feature.projection-sets/types/dependency-value-resolver.type.ts +20 -0
  48. package/feature.reactivity/value/$value.class.ts +237 -0
  49. package/feature.set/index.ts +3 -0
  50. package/feature.set/set.prototype.difference.polyfill.ts +7 -0
  51. package/feature.set/set.prototype.intersection.polyfill.ts +6 -0
  52. package/feature.set/set.prototype.union.polyfill.ts +11 -0
  53. package/feature.typescript/maybe-promise.type.ts +1 -0
  54. package/package.json +51 -0
  55. package/tsconfig.json +116 -0
@@ -0,0 +1,20 @@
1
+ import { MaybePromise } from "#typescript/maybe-promise.type.js"
2
+ import { TInputSetChanges } from "../../../_common/set-changes.interface.js"
3
+ import { IValueChange } from "../../../_common/value-change.interface.js"
4
+
5
+ /**
6
+ * A resolver function used to convert changes from a `$Set` dependency
7
+ * into a delta that should be applied to the result set.
8
+ *
9
+ * @template TContext The resolved values of all dependencies.
10
+ * @template TSource The type of values in the dependency source.
11
+ * @template TResult The type of values in the resulting set.
12
+ *
13
+ * @remarks
14
+ * The resolver may use each `TSource` value as a *projective key* — not just a value to test.
15
+ * This allows transformation, correlation, or expansion into multiple result values.
16
+ */
17
+ export type TDependencyValueResolver<TContext extends Record<string, any> = Record<string, any>, TSource = any, TResult = any> = (
18
+ context: TContext,
19
+ changes: IValueChange<TSource>,
20
+ ) => MaybePromise<TInputSetChanges<TResult>>
@@ -0,0 +1,237 @@
1
+ import { Signal } from "class-signals"
2
+ import { IObservable } from "../_common/observable.interface.js"
3
+ import { IValueChange } from "../_common/value-change.interface.js"
4
+ import { IValueContainer } from "../_common/value-container.interface.js"
5
+ import equal from "@wry/equality"
6
+
7
+ /**
8
+ * Options for creating a reactive value container.
9
+ *
10
+ * Used internally by the `$Value` class constructor.
11
+ *
12
+ * @template T Type of the stored value.
13
+ */
14
+ export interface IValueOptions<T> {
15
+ /**
16
+ * Initial value to assign to the container.
17
+ */
18
+ value: T
19
+
20
+ /**
21
+ * Optional label for debugging, logging, or introspection.
22
+ * Useful in developer tools or when tracing reactive updates.
23
+ */
24
+ label?: string
25
+ }
26
+
27
+ /**
28
+ * Internal class representing a reactive primitive value.
29
+ *
30
+ * `$Value<T>` is the internal implementation behind the `$value()` helper function.
31
+ * It stores a mutable value of type `T` and provides a `.value` getter/setter for reactive access.
32
+ *
33
+ * This class is not intended to be used directly. Use the `$value()` factory to create reactive values.
34
+ *
35
+ * You can observe changes using the `.onChange` signal, which emits objects conforming to `IValueChange<T>`:
36
+ *
37
+ * - `increment`: the new value container (if added or updated)
38
+ * - `decrement`: the previous value container (if removed or updated)
39
+ *
40
+ * @template T The type of the stored value.
41
+ *
42
+ * @example
43
+ * ```ts
44
+ * const flag = $value(false)
45
+ *
46
+ * flag.onChange.subscribe(({ increment, decrement }) => {
47
+ * if (increment) console.log(`Flag changed to: ${increment.value}`)
48
+ * })
49
+ *
50
+ * flag.value = true // Logs: "Flag changed to: true"
51
+ * ```
52
+ *
53
+ * @internal
54
+ */
55
+ export class $Value<TValue> implements IValueContainer<TValue>, IObservable<IValueChange<TValue>> {
56
+ /**
57
+ * Creates a new reactive value container.
58
+ *
59
+ * This constructor is used internally by the `$value()` helper function.
60
+ * It sets the initial value and optionally assigns a debug label.
61
+ *
62
+ * @param options Configuration object for initial state and debugging.
63
+ */
64
+ constructor(options: IValueOptions<TValue>) {
65
+ this.#value = options.value
66
+ this.label = options?.label
67
+ }
68
+
69
+ /**
70
+ * Optional label for debugging, logging, or developer tools.
71
+ *
72
+ * Can be used to identify this value container in complex reactive graphs.
73
+ *
74
+ * This field is read-only and defined during construction.
75
+ *
76
+ * @example
77
+ * ```ts
78
+ * const debugValue = $value(42, { label: 'answer' })
79
+ * console.log(debugValue.label) // 'answer'
80
+ * ```
81
+ */
82
+ readonly label?: string
83
+
84
+ /**
85
+ * The current raw value stored in this reactive primitive.
86
+ *
87
+ * This is the internal backing field for the `.value` getter and setter.
88
+ * It is updated when `.value` is assigned a new value, and read when `.value` is accessed.
89
+ *
90
+ * Only direct mutation through `.value` is allowed — this field should never be accessed directly.
91
+ *
92
+ * @private
93
+ */
94
+ #value: TValue
95
+
96
+ // ##################### REACTIVE #####################
97
+
98
+ /**
99
+ * Signal that notifies subscribers whenever the value changes.
100
+ *
101
+ * Emits an `IValueChange<T>` object that describes the change:
102
+ * - `increment`: the new value container (if added or updated)
103
+ * - `decrement`: the previous value container (if removed or updated)
104
+ *
105
+ * Use `.subscribe(...)` to react to changes.
106
+ *
107
+ * @example
108
+ * ```ts
109
+ * const counter = $value(0)
110
+ *
111
+ * counter.onChange.subscribe(({ increment }) => {
112
+ * console.log(`Counter updated: ${increment?.value}`)
113
+ * })
114
+ *
115
+ * counter.value = 1 // Logs: "Counter updated: 1"
116
+ * ```
117
+ */
118
+ readonly onChange = new Signal<IValueChange<TValue>>()
119
+
120
+ // ##################### TRANSACTION #####################
121
+
122
+ /**
123
+ * Stores a temporary value during an open transaction.
124
+ *
125
+ * This field is used internally to hold a staged value when `openTransaction()` is called.
126
+ * It is committed to `.value` only when `closeTransaction()` is invoked.
127
+ *
128
+ * @private
129
+ */
130
+ #transactionState?: IValueContainer<TValue>
131
+
132
+ /**
133
+ * Tracks whether a transaction is currently active.
134
+ *
135
+ * If true, value updates are staged but not emitted until `closeTransaction()` is called.
136
+ *
137
+ * @private
138
+ */
139
+ #transactionIsOpen = false
140
+
141
+ /**
142
+ * Opens a transaction to batch updates and delay `onChange` emissions.
143
+ *
144
+ * When a transaction is active, value updates do not trigger listeners immediately.
145
+ * Instead, the final value is stored and emitted only when `closeTransaction()` is called.
146
+ *
147
+ * Calling this method multiple times has no effect.
148
+ *
149
+ * @example
150
+ * ```ts
151
+ * counter.openTransaction()
152
+ * counter.value = counter.value + 1
153
+ * counter.value = counter.value + 1
154
+ * counter.closeTransaction() // `onChange` triggered only once with final value
155
+ * ```
156
+ */
157
+ openTransaction() {
158
+ if (this.#transactionIsOpen) return
159
+ this.#transactionIsOpen = true
160
+
161
+ this.#transactionState = undefined
162
+ }
163
+
164
+ /**
165
+ * Closes the active transaction and commits the final staged value.
166
+ *
167
+ * If any changes were made during the transaction, the final value is assigned to `.value`
168
+ * and listeners are notified via `onChange`.
169
+ *
170
+ * If no transaction was active, this method does nothing.
171
+ */
172
+ closeTransaction() {
173
+ if (!this.#transactionIsOpen) return
174
+ this.#transactionIsOpen = false
175
+
176
+ if (this.#transactionState) {
177
+ this.value = this.#transactionState.value
178
+ this.#transactionState = undefined
179
+ }
180
+ }
181
+
182
+ // ##################### EDIT #####################
183
+
184
+ /**
185
+ * Updates the value stored in this reactive primitive.
186
+ *
187
+ * If the new value is different from the current one, the change is applied and a signal is dispatched.
188
+ * This notifies all listeners via `.onChange` with the corresponding `IValueChange<T>` payload.
189
+ *
190
+ * If the new value is strictly equal (`===`) to the current one, no update or signal is triggered.
191
+ *
192
+ * @param next The new value to assign.
193
+ *
194
+ * @example
195
+ * ```ts
196
+ * const count = $value(0)
197
+ *
198
+ * count.value = 5 // Triggers .onChange
199
+ * count.value = 5 // No change, signal not triggered
200
+ * ```
201
+ */
202
+ set value(next: TValue) {
203
+ if (this.#transactionIsOpen) {
204
+ this.#transactionState = { value: next }
205
+ } else {
206
+ if (equal(this.#value, next)) return
207
+
208
+ const lastState = { value: this.#value }
209
+
210
+ this.#value = next
211
+
212
+ const nextState = { value: this.#value }
213
+
214
+ this.onChange.activate({ decrement: lastState, increment: nextState })
215
+ }
216
+ }
217
+
218
+ /**
219
+ * Gets the current value stored in this reactive primitive.
220
+ *
221
+ * Reading `.value` registers the access as a dependency, so if this is done within a reactive context
222
+ * (e.g. inside a signal listener or another observable), it will automatically re-run when the value changes.
223
+ *
224
+ * @returns The current value of type `T`.
225
+ *
226
+ * @example
227
+ * ```ts
228
+ * const username = $value('guest')
229
+ *
230
+ * // Accessing the value
231
+ * console.log(username.value) // 'guest'
232
+ * ```
233
+ */
234
+ get value(): TValue {
235
+ return this.#value
236
+ }
237
+ }
@@ -0,0 +1,3 @@
1
+ export { difference } from "./set.prototype.difference.polyfill.js"
2
+ export { intersection } from "./set.prototype.intersection.polyfill.js"
3
+ export { union } from "./set.prototype.union.polyfill.js"
@@ -0,0 +1,7 @@
1
+ export function difference<TValue>(set: Set<TValue>, other: Set<NoInfer<TValue>>): Set<TValue> {
2
+ if ("difference" in Set.prototype) return set.difference(other)
3
+
4
+ const result = new Set<TValue>()
5
+ for (const value of set) if (!other.has(value)) result.add(value)
6
+ return result
7
+ }
@@ -0,0 +1,6 @@
1
+ export function intersection<TValue>(set: Set<TValue>, other: Set<TValue>): Set<TValue> {
2
+ if ("intersection" in Set.prototype) return set.intersection(other)
3
+ const result = new Set<TValue>()
4
+ for (const value of other) if (set.has(value)) result.add(value)
5
+ return result
6
+ }
@@ -0,0 +1,11 @@
1
+ export function union<TValue>(set: Set<TValue>, other: Set<NoInfer<TValue>>): Set<TValue> {
2
+ if ("union" in Set.prototype) return set.union(other)
3
+
4
+ const result = new Set<TValue>()
5
+
6
+ for (const value of set) result.add(value)
7
+
8
+ for (const value of other) result.add(value)
9
+
10
+ return result
11
+ }
@@ -0,0 +1 @@
1
+ export type MaybePromise<T> = Promise<T> | T
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "heavy-reactive",
3
+ "description": "Reactive state management for heavy computations, distributed tasks, and long-running data processing",
4
+ "type": "module",
5
+ "version": "1.0.0",
6
+ "homepage": "https://github.com/Qsppl/heavy-reactive#readme",
7
+ "bugs": {
8
+ "url": "https://github.com/Qsppl/heavy-reactive/issues"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/Qsppl/heavy-reactive.git"
13
+ },
14
+ "keywords": [
15
+ "reactive",
16
+ "heavy computations",
17
+ "data processing",
18
+ "performance",
19
+ "optimization",
20
+ "task scheduling",
21
+ "signals"
22
+ ],
23
+ "license": "MIT",
24
+ "author": "Tomoko",
25
+ "main": "feature.reactivity/reactivity.module.ts",
26
+ "imports": {
27
+ "#set/*": "feature.set/*",
28
+ "#typescript/*": "feature.typescript/*"
29
+ },
30
+ "scripts": {
31
+ "prepare": "husky || true",
32
+ "prettier:write": "prettier --config .prettierrc --log-level warn --write .",
33
+ "prettier:check": "prettier --config .prettierrc --log-level warn --check .",
34
+ "typescript:check": "tsc"
35
+ },
36
+ "engines": {
37
+ "npm": "^11.2",
38
+ "node": "^23.9"
39
+ },
40
+ "devDependencies": {
41
+ "@commitlint/cli": "^19.8.1",
42
+ "@commitlint/config-conventional": "^19.8.1",
43
+ "husky": "^9.1.7",
44
+ "prettier": "^3.6.2",
45
+ "typescript": "^5.8.3"
46
+ },
47
+ "dependencies": {
48
+ "@wry/equality": "^0.5.7",
49
+ "class-signals": "^2.0.0"
50
+ }
51
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,116 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
17
+ // "libReplacement": true, /* Enable lib replacement. */
18
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
19
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
20
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
21
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
22
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
23
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
24
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
25
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
26
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
27
+
28
+ /* Modules */
29
+ "module": "nodenext", /* Specify what module code is generated. */
30
+ // "rootDir": "./", /* Specify the root folder within your source files. */
31
+ // "moduleResolution": "node10", /* 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": {
34
+ "#set/*": ["./feature.set/*"],
35
+ "#typescript/*": ["./feature.typescript/*"]
36
+ }, /* Specify a set of entries that re-map imports to additional lookup locations. */
37
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
38
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
39
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
40
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
41
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
42
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
43
+ // "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
44
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
45
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
46
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
47
+ // "noUncheckedSideEffectImports": true, /* Check side effect imports. */
48
+ // "resolveJsonModule": true, /* Enable importing .json files. */
49
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
50
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
51
+
52
+ /* JavaScript Support */
53
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
54
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
55
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
56
+
57
+ /* Emit */
58
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
59
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
60
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
61
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
62
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
63
+ "noEmit": true, /* Disable emitting files from a compilation. */
64
+ // "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. */
65
+ // "outDir": "./", /* Specify an output folder for all emitted files. */
66
+ // "removeComments": true, /* Disable emitting comments. */
67
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
68
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
69
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
70
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
71
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
72
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
73
+ "newLine": "lf", /* Set the newline character for emitting files. */
74
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
75
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
76
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
77
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
78
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
79
+
80
+ /* Interop Constraints */
81
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
82
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
83
+ // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
84
+ // "erasableSyntaxOnly": true, /* Do not allow runtime constructs that are not part of ECMAScript. */
85
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
86
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
87
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
88
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
89
+
90
+ /* Type Checking */
91
+ "strict": true, /* Enable all strict type-checking options. */
92
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
93
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
94
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
95
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
96
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
97
+ // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */
98
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
99
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
100
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
101
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
102
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
103
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
104
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
105
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
106
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
107
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
108
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
109
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
110
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
111
+
112
+ /* Completeness */
113
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
114
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
115
+ }
116
+ }