kea-typegen 3.4.7 → 3.5.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.
- package/CHANGELOG.md +64 -45
- package/dist/package.json +3 -3
- package/dist/src/cli/typegen.js +10 -9
- package/dist/src/cli/typegen.js.map +1 -1
- package/dist/src/print/print.d.ts +3 -3
- package/dist/src/print/print.js +9 -9
- package/dist/src/print/print.js.map +1 -1
- package/dist/src/typegen.d.ts +1 -1
- package/dist/src/typegen.js +7 -7
- package/dist/src/typegen.js.map +1 -1
- package/dist/src/write/convertToBuilders.d.ts +1 -1
- package/dist/src/write/convertToBuilders.js +2 -2
- package/dist/src/write/convertToBuilders.js.map +1 -1
- package/dist/src/write/writePaths.d.ts +1 -1
- package/dist/src/write/writePaths.js +3 -3
- package/dist/src/write/writePaths.js.map +1 -1
- package/dist/src/write/writeTypeImports.d.ts +1 -1
- package/dist/src/write/writeTypeImports.js +2 -2
- package/dist/src/write/writeTypeImports.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/cli/typegen.ts +13 -27
- package/src/print/print.ts +12 -9
- package/src/typegen.ts +8 -8
- package/src/write/convertToBuilders.ts +3 -3
- package/src/write/writePaths.ts +9 -4
- package/src/write/writeTypeImports.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,53 +1,72 @@
|
|
|
1
|
+
## 3.5.0 - 2025-07-17
|
|
2
|
+
|
|
3
|
+
- Update to Prettier v3 adding `async` support
|
|
4
|
+
|
|
1
5
|
## 3.4.6 - 2025-06-23
|
|
6
|
+
|
|
2
7
|
- Write the cache into the <root>/.typegen folder
|
|
3
8
|
|
|
4
9
|
## 3.4.6 - 2025-06-23
|
|
10
|
+
|
|
5
11
|
- Create a "--use-cache" option to cache the generated types in ".typegen"
|
|
6
12
|
|
|
7
13
|
## 3.4.5 - 2025-06-23
|
|
14
|
+
|
|
8
15
|
- Reuse old program when running "typegen:write" (small speedup)
|
|
9
16
|
|
|
10
17
|
## 3.4.4 - 2025-06-19
|
|
18
|
+
|
|
11
19
|
- Upgrade to TypeScript 5.4
|
|
12
20
|
|
|
13
21
|
## 3.4.3 - 2025-06-19
|
|
22
|
+
|
|
14
23
|
- Upgrade to TypeScript 5.2
|
|
15
24
|
|
|
16
25
|
## 3.4.2 - 2025-06-19
|
|
26
|
+
|
|
17
27
|
- Upgrade to TypeScript 5.1
|
|
18
28
|
|
|
19
29
|
## 3.4.1 - 2025-06-13
|
|
30
|
+
|
|
20
31
|
- Upgrade to TypeScript 5.0
|
|
21
32
|
|
|
22
33
|
## 3.3.7 - 2025-05-22
|
|
34
|
+
|
|
23
35
|
- Support `lazyLoaders`
|
|
24
36
|
|
|
25
37
|
## 3.3.6 - 2025-01-21
|
|
38
|
+
|
|
26
39
|
- Skip `..` in `path()`
|
|
27
40
|
|
|
28
41
|
## 3.3.5 - 2025-01-10
|
|
42
|
+
|
|
29
43
|
- Resolve duplicate type imports in logic files
|
|
30
44
|
|
|
31
45
|
## 3.3.4 - 2023-12-04
|
|
46
|
+
|
|
32
47
|
- Fix missing logic in connect.
|
|
33
48
|
|
|
34
49
|
## 3.3.0 - 2023-08-16
|
|
50
|
+
|
|
35
51
|
- Sort printed unions and type literals in actions, reducers, etc. This is to keep the output deterministic.
|
|
36
52
|
|
|
37
53
|
## 3.2.3 - 2023-08-16
|
|
54
|
+
|
|
38
55
|
- Fix deprecations and upgrade TypeScript
|
|
39
56
|
|
|
40
57
|
## 3.2.2 - 2023-08-16
|
|
58
|
+
|
|
41
59
|
- Support kea-forms's paths in path cleanup.
|
|
42
60
|
|
|
43
61
|
## 3.2.1 - 2023-08-16
|
|
62
|
+
|
|
44
63
|
- Also support `@types/` imports by removing `@types/`
|
|
45
64
|
|
|
46
65
|
## 3.2.0 - 2023-08-16
|
|
47
66
|
|
|
48
67
|
- Clean up paths in generated import files
|
|
49
|
-
|
|
50
|
-
|
|
68
|
+
- Convert `../../node_modules/*` to just `*`
|
|
69
|
+
- Convert `../../node_modules/.pnpm/pkg@version/node_modules/*` to just `*`
|
|
51
70
|
|
|
52
71
|
## 3.1.7 - 2023-08-16
|
|
53
72
|
|
|
@@ -76,8 +95,8 @@
|
|
|
76
95
|
## 3.1.0 - 2022-05-24
|
|
77
96
|
|
|
78
97
|
- Remove support for importing local types by adding to the end of `logicType` in `kea<logicType<Something, Other, Another>>(...)`
|
|
79
|
-
- Instead, `export` all local types, and typegen will import them in `logicType.ts` just like other types, even if they're declared in `logic.ts`.
|
|
80
|
-
- This will bring a circular import in your code `logic.ts <-> logicType.ts`, but `tsc` seems not to care.
|
|
98
|
+
- Instead, `export` all local types, and typegen will import them in `logicType.ts` just like other types, even if they're declared in `logic.ts`.
|
|
99
|
+
- This will bring a circular import in your code `logic.ts <-> logicType.ts`, but `tsc` seems not to care.
|
|
81
100
|
|
|
82
101
|
## 3.0.0 - 2022-05-12
|
|
83
102
|
|
|
@@ -89,131 +108,131 @@
|
|
|
89
108
|
|
|
90
109
|
## 1.4.3 - 2022-03-18
|
|
91
110
|
|
|
92
|
-
-
|
|
111
|
+
- Internal: plugins can specify which types they want to import from 'kea'
|
|
93
112
|
|
|
94
113
|
## 1.4.2 - 2021-12-13
|
|
95
114
|
|
|
96
|
-
-
|
|
115
|
+
- Fix bug introduced with 1.4.1 if your `tsconfig.json` file does not contain a `types` array.
|
|
97
116
|
|
|
98
117
|
## 1.4.1 - 2021-12-12
|
|
99
118
|
|
|
100
|
-
-
|
|
101
|
-
-
|
|
119
|
+
- Adds new option, `ignoreImportPaths`, to specify a list of files or folders that typegen will never import from, when adding imports inside `logicType.ts` files.
|
|
120
|
+
- Automatically skips adding imports for global types, as specified via the `types` array in `tsconfig.json`. Each entry in the array (e.g. `node`) will add an import ignore path for `./node_modules/@types/node`. To revert this, set `"importGlobalTypes": true` inside `.kearc` or via the CLI.
|
|
102
121
|
|
|
103
122
|
## 1.4.0 - 2021-12-12
|
|
104
123
|
|
|
105
|
-
-
|
|
106
|
-
-
|
|
107
|
-
-
|
|
124
|
+
- Support TypeScript 4.5+.
|
|
125
|
+
- Now adds new type imports with `type`, such as: `import type { logicType } from './logicType`.
|
|
126
|
+
- Refactor internals to create nodes newer `ts.factory` methods.
|
|
108
127
|
|
|
109
128
|
## 1.3.0 - 2021-11-08
|
|
110
129
|
|
|
111
|
-
-
|
|
130
|
+
- Write paths into logics with `--write-paths`. Can be configured in `.kearc` with `writePaths: true`
|
|
112
131
|
|
|
113
132
|
## 1.2.2 - 2021-10-14
|
|
114
133
|
|
|
115
|
-
-
|
|
134
|
+
- Loaders: Make the `payload` parameter on the `Success` action optional.
|
|
116
135
|
|
|
117
136
|
## 1.2.1 - 2021-10-14
|
|
118
137
|
|
|
119
|
-
-
|
|
138
|
+
- Improve `kea-loaders` 0.5.0 support
|
|
120
139
|
|
|
121
140
|
## 1.2.0 - 2021-10-14
|
|
122
141
|
|
|
123
|
-
-
|
|
142
|
+
- Support `kea-loaders` 0.5.0, add `payload` to the success action and `errorObject` to the failure action.
|
|
124
143
|
|
|
125
144
|
## 1.1.6 - 2021-10-07
|
|
126
145
|
|
|
127
|
-
-
|
|
146
|
+
- Support reducers with actions like `[otherLogic().actionTypes.bla]`
|
|
128
147
|
|
|
129
148
|
## 1.1.5 - 2021-07-14
|
|
130
149
|
|
|
131
|
-
-
|
|
150
|
+
- [Fix bug](https://github.com/keajs/kea-typegen/issues/28) with string constant types in action properties when connected with `connect`.
|
|
132
151
|
|
|
133
152
|
## 1.1.4 - 2021-07-13
|
|
134
153
|
|
|
135
|
-
-
|
|
154
|
+
- Support declaring `props: {} as SomeInterface`
|
|
136
155
|
|
|
137
156
|
## 1.1.3 - 2021-07-13
|
|
138
157
|
|
|
139
|
-
-
|
|
158
|
+
- Bugfixes
|
|
140
159
|
|
|
141
160
|
## 1.1.2 - 2021-07-12
|
|
142
161
|
|
|
143
|
-
-
|
|
162
|
+
- Export types and `runTypeGen` function
|
|
144
163
|
|
|
145
164
|
## 1.1.1 - 2021-07-12
|
|
146
165
|
|
|
147
|
-
-
|
|
166
|
+
- Fix main field in package.json
|
|
148
167
|
|
|
149
168
|
## 1.1.0 - 2021-07-12
|
|
150
169
|
|
|
151
|
-
-
|
|
170
|
+
- Experimental support for typegen plugins
|
|
152
171
|
|
|
153
172
|
## 1.0.4 - 2021-06-27
|
|
154
173
|
|
|
155
|
-
-
|
|
174
|
+
- Fix regression
|
|
156
175
|
|
|
157
176
|
## 1.0.3 - 2021-06-27
|
|
158
177
|
|
|
159
|
-
-
|
|
178
|
+
- Fix regression
|
|
160
179
|
|
|
161
180
|
## 1.0.2 - 2021-06-27
|
|
162
181
|
|
|
163
|
-
-
|
|
164
|
-
-
|
|
182
|
+
- Use explicitly specified function return types if present for actions and selectors (vs detection via compiler api).
|
|
183
|
+
- This helps with namespaced types like `This.That`, as the namespace information is lost in detected types.
|
|
165
184
|
|
|
166
185
|
## 1.0.1 - 2021-06-27
|
|
167
186
|
|
|
168
|
-
-
|
|
169
|
-
-
|
|
187
|
+
- Republish as 1.0.0 on npm is actually 0.7.2
|
|
188
|
+
- Only import `A` when encountering complex types like `A.B`
|
|
170
189
|
|
|
171
190
|
## 1.0.0 - 2021-06-26
|
|
172
191
|
|
|
173
|
-
-
|
|
192
|
+
- Support auto-importing referenced types into logic types
|
|
174
193
|
|
|
175
194
|
## 0.7.2 - 2021-05-30
|
|
176
195
|
|
|
177
|
-
-
|
|
196
|
+
- Support actions that return payloads with over 16 properties (fix ".. 4 more .." in the generated type).
|
|
178
197
|
|
|
179
198
|
## 0.7.1 - 2021-04-30
|
|
180
199
|
|
|
181
|
-
-
|
|
200
|
+
- Improve error display, condense logs
|
|
182
201
|
|
|
183
202
|
## 0.7.0 - 2021-04-26
|
|
184
203
|
|
|
185
|
-
-
|
|
186
|
-
-
|
|
204
|
+
- Fix various bugs from last version.
|
|
205
|
+
- Run with `--no-import` to skip automatically adding imports to logic types.
|
|
187
206
|
|
|
188
207
|
## 0.6.2 - 2021-04-25
|
|
189
208
|
|
|
190
|
-
-
|
|
191
|
-
-
|
|
192
|
-
-
|
|
209
|
+
- Automatically add `import { logicType } from './logicType'` statements
|
|
210
|
+
- Automatically add the type to `kea<logicType>()`
|
|
211
|
+
- 0.6.0 and 0.6.1 had some bugs, don't use.
|
|
193
212
|
|
|
194
213
|
## 0.5.4 - 2021-03-30
|
|
195
214
|
|
|
196
|
-
-
|
|
215
|
+
- Support reducers with selectors as defaults
|
|
197
216
|
|
|
198
217
|
## 0.5.3 - 2021-02-23
|
|
199
218
|
|
|
200
|
-
-
|
|
201
|
-
-
|
|
202
|
-
-
|
|
219
|
+
- Fix type bug with selectors
|
|
220
|
+
- Skip first comment line in generated types when comparing for overwrites
|
|
221
|
+
- Update deps
|
|
203
222
|
|
|
204
223
|
## 0.5.2 - 2021-02-23
|
|
205
224
|
|
|
206
|
-
-
|
|
225
|
+
- Update and clean up copy
|
|
207
226
|
|
|
208
227
|
## 0.5.1 - 2021-01-22
|
|
209
228
|
|
|
210
|
-
-
|
|
229
|
+
- Fix `kea-typegen write` recursive updates
|
|
211
230
|
|
|
212
231
|
## 0.5.0 - 2021-01-22
|
|
213
232
|
|
|
214
|
-
-
|
|
215
|
-
-
|
|
233
|
+
- Fix "Record<...>" style shortened types in selectors
|
|
234
|
+
- Add names to selectors
|
|
216
235
|
|
|
217
236
|
## 0.4.0 - 2020-12-29
|
|
218
237
|
|
|
219
|
-
-
|
|
238
|
+
- Fixed support for TypeScript 4.1
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kea-typegen",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Generate type definitions for kea logic",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "ts-node ./src/cli/typegen.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -p .",
|
|
9
9
|
"prepublishOnly": "npm run test && npm run clean && npm run build",
|
|
10
10
|
"run-built-cli": "node dist/src/cli/typegen.js",
|
|
11
|
-
"test": "jest",
|
|
11
|
+
"test": "node --experimental-vm-modules node_modules/.bin/jest",
|
|
12
12
|
"samples:check": "ts-node ./src/cli/typegen.ts check -r ./samples",
|
|
13
13
|
"samples:write": "ts-node ./src/cli/typegen.ts write -r ./samples --write-paths --delete",
|
|
14
14
|
"samples:convert": "ts-node ./src/cli/typegen.ts write -r ./samples --convert-to-builders",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@babel/preset-env": "^7.22.10",
|
|
29
29
|
"@babel/preset-typescript": "^7.22.5",
|
|
30
30
|
"ts-clone-node": "^3.0.0",
|
|
31
|
-
"prettier": "^
|
|
31
|
+
"prettier": "^3.6.2",
|
|
32
32
|
"recast": "^0.23.4",
|
|
33
33
|
"yargs": "^16.2.0"
|
|
34
34
|
},
|
package/dist/src/cli/typegen.js
CHANGED
|
@@ -7,14 +7,14 @@ const path = require("path");
|
|
|
7
7
|
const fs = require("fs");
|
|
8
8
|
const typegen_1 = require("../typegen");
|
|
9
9
|
yargs
|
|
10
|
-
.command('check', '- check what should be done',
|
|
11
|
-
(0, typegen_1.runTypeGen)({ ...includeKeaConfig(parsedToAppOptions(argv)), write: false, watch: false });
|
|
10
|
+
.command('check', '- check what should be done', {}, async (argv) => {
|
|
11
|
+
await (0, typegen_1.runTypeGen)({ ...includeKeaConfig(parsedToAppOptions(argv)), write: false, watch: false });
|
|
12
12
|
})
|
|
13
|
-
.command('write', '- write logicType.ts files',
|
|
14
|
-
(0, typegen_1.runTypeGen)({ ...includeKeaConfig(parsedToAppOptions(argv)), write: true, watch: false });
|
|
13
|
+
.command('write', '- write logicType.ts files', {}, async (argv) => {
|
|
14
|
+
await (0, typegen_1.runTypeGen)({ ...includeKeaConfig(parsedToAppOptions(argv)), write: true, watch: false });
|
|
15
15
|
})
|
|
16
|
-
.command('watch', '- watch for changes and write logicType.ts files',
|
|
17
|
-
(0, typegen_1.runTypeGen)({ ...includeKeaConfig(parsedToAppOptions(argv)), write: true, watch: true });
|
|
16
|
+
.command('watch', '- watch for changes and write logicType.ts files', {}, async (argv) => {
|
|
17
|
+
await (0, typegen_1.runTypeGen)({ ...includeKeaConfig(parsedToAppOptions(argv)), write: true, watch: true });
|
|
18
18
|
})
|
|
19
19
|
.option('config', { alias: 'c', describe: 'Path to tsconfig.json (otherwise auto-detected)', type: 'string' })
|
|
20
20
|
.option('file', { alias: 'f', describe: "Single file to evaluate (can't be used with --config)", type: 'string' })
|
|
@@ -53,7 +53,8 @@ yargs
|
|
|
53
53
|
.option('verbose', { describe: 'Slightly more verbose output log', type: 'boolean' })
|
|
54
54
|
.demandCommand()
|
|
55
55
|
.help()
|
|
56
|
-
.wrap(80)
|
|
56
|
+
.wrap(80)
|
|
57
|
+
.parse();
|
|
57
58
|
function parsedToAppOptions(parsedOptions) {
|
|
58
59
|
const { root, types, config, file, ...rest } = parsedOptions;
|
|
59
60
|
const appOptions = {
|
|
@@ -84,14 +85,14 @@ function includeKeaConfig(appOptions) {
|
|
|
84
85
|
try {
|
|
85
86
|
rawData = fs.readFileSync(configFilePath);
|
|
86
87
|
}
|
|
87
|
-
catch
|
|
88
|
+
catch {
|
|
88
89
|
console.error(`Error reading Kea config file: ${configFilePath}`);
|
|
89
90
|
process.exit(1);
|
|
90
91
|
}
|
|
91
92
|
try {
|
|
92
93
|
keaConfig = JSON.parse(rawData);
|
|
93
94
|
}
|
|
94
|
-
catch
|
|
95
|
+
catch {
|
|
95
96
|
console.error(`Error parsing Kea config JSON: ${configFilePath}`);
|
|
96
97
|
process.exit(1);
|
|
97
98
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typegen.js","sourceRoot":"","sources":["../../../src/cli/typegen.ts"],"names":[],"mappings":";;;AAEA,iCAAgC;AAChC,+BAA8B;AAC9B,6BAA4B;AAC5B,yBAAwB;AAExB,wCAAuC;AAEvC,KAAK;KACA,OAAO,
|
|
1
|
+
{"version":3,"file":"typegen.js","sourceRoot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AAU,CAAC,eAAe,EAAE,CAAC;QAC9B,UAAU,CAAC,eAAe;YACtB,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC,QAAQ,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,EAAE,cAAc,CAAC;gBACzE,EAAE,CAAC,cAAc,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,CAAC,UAAU,EAAE,cAAc,CAAC,CAAA;IAClE,CAAC;IAED,OAAO,UAAU,CAAA;AACrB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Node, Program } from 'typescript';
|
|
2
2
|
import { AppOptions, ParsedLogic } from '../types';
|
|
3
|
-
export declare function runThroughPrettier(sourceText: string, filePath: string): string
|
|
4
|
-
export declare function printToFiles(program: Program, appOptions: AppOptions, parsedLogics: ParsedLogic[]): {
|
|
3
|
+
export declare function runThroughPrettier(sourceText: string, filePath: string): Promise<string>;
|
|
4
|
+
export declare function printToFiles(program: Program, appOptions: AppOptions, parsedLogics: ParsedLogic[]): Promise<{
|
|
5
5
|
filesToWrite: number;
|
|
6
6
|
writtenFiles: number;
|
|
7
7
|
filesToModify: number;
|
|
8
|
-
}
|
|
8
|
+
}>;
|
|
9
9
|
export declare function nodeToString(node: Node): string;
|
|
10
10
|
export declare function parsedLogicToTypeString(parsedLogic: ParsedLogic, appOptions?: AppOptions): string;
|
|
11
11
|
export declare function printLogicType(parsedLogic: ParsedLogic, appOptions?: AppOptions): void;
|
package/dist/src/print/print.js
CHANGED
|
@@ -28,11 +28,11 @@ const writeTypeImports_1 = require("../write/writeTypeImports");
|
|
|
28
28
|
const printInternalExtraInput_1 = require("./printInternalExtraInput");
|
|
29
29
|
const convertToBuilders_1 = require("../write/convertToBuilders");
|
|
30
30
|
const cache_1 = require("../cache");
|
|
31
|
-
function runThroughPrettier(sourceText, filePath) {
|
|
32
|
-
const options = prettier.resolveConfig
|
|
31
|
+
async function runThroughPrettier(sourceText, filePath) {
|
|
32
|
+
const options = await prettier.resolveConfig(filePath);
|
|
33
33
|
if (options) {
|
|
34
34
|
try {
|
|
35
|
-
return prettier.format(sourceText, { ...options, filepath: filePath });
|
|
35
|
+
return await prettier.format(sourceText, { ...options, filepath: filePath });
|
|
36
36
|
}
|
|
37
37
|
catch (e) {
|
|
38
38
|
console.error(`!! Prettier: Error formatting "${filePath}"`);
|
|
@@ -45,7 +45,8 @@ function runThroughPrettier(sourceText, filePath) {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
exports.runThroughPrettier = runThroughPrettier;
|
|
48
|
-
function printToFiles(program, appOptions, parsedLogics) {
|
|
48
|
+
async function printToFiles(program, appOptions, parsedLogics) {
|
|
49
|
+
var _a;
|
|
49
50
|
const { log } = appOptions;
|
|
50
51
|
const groupedByFile = {};
|
|
51
52
|
for (const parsedLogic of parsedLogics) {
|
|
@@ -64,13 +65,12 @@ function printToFiles(program, appOptions, parsedLogics) {
|
|
|
64
65
|
let writtenFiles = 0;
|
|
65
66
|
let filesToWrite = 0;
|
|
66
67
|
let filesToModify = 0;
|
|
67
|
-
|
|
68
|
-
var _a;
|
|
68
|
+
for (const [fileName, parsedLogics] of Object.entries(groupedByFile)) {
|
|
69
69
|
const typeFileName = parsedLogics[0].typeFileName;
|
|
70
70
|
const logicStrings = [];
|
|
71
71
|
const requiredKeys = new Set(['Logic']);
|
|
72
72
|
for (const parsedLogic of parsedLogics) {
|
|
73
|
-
const logicTypeStirng = runThroughPrettier(nodeToString(parsedLogic.interfaceDeclaration), typeFileName);
|
|
73
|
+
const logicTypeStirng = await runThroughPrettier(nodeToString(parsedLogic.interfaceDeclaration), typeFileName);
|
|
74
74
|
logicStrings.push(logicTypeStirng);
|
|
75
75
|
for (const string of parsedLogic.importFromKeaInLogicType.values()) {
|
|
76
76
|
requiredKeys.add(string);
|
|
@@ -167,7 +167,7 @@ function printToFiles(program, appOptions, parsedLogics) {
|
|
|
167
167
|
const logicsNeedingImports = parsedLogics.filter(parsedLogicNeedsTypeImport);
|
|
168
168
|
if (logicsNeedingImports.length > 0) {
|
|
169
169
|
if (appOptions.write && !appOptions.noImport) {
|
|
170
|
-
(0, writeTypeImports_1.writeTypeImports)(appOptions, program, fileName, logicsNeedingImports, parsedLogics);
|
|
170
|
+
await (0, writeTypeImports_1.writeTypeImports)(appOptions, program, fileName, logicsNeedingImports, parsedLogics);
|
|
171
171
|
filesToModify += logicsNeedingImports.length;
|
|
172
172
|
}
|
|
173
173
|
else {
|
|
@@ -198,7 +198,7 @@ function printToFiles(program, appOptions, parsedLogics) {
|
|
|
198
198
|
log(`❌ Will not write ${logicsNeedingConversion.length} logic path${logicsNeedingConversion.length === 1 ? '' : 's'}`);
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
|
-
}
|
|
201
|
+
}
|
|
202
202
|
if (writtenFiles === 0 && filesToModify === 0) {
|
|
203
203
|
if (appOptions.write) {
|
|
204
204
|
log(`💚 ${parsedLogics.length} logic type${parsedLogics.length === 1 ? '' : 's'} up to date!`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"print.js","sourceRoot":"","sources":["../../../src/print/print.ts"],"names":[],"mappings":";;;AAAA,2CAYmB;AACnB,yBAAwB;AACxB,6BAA4B;AAC5B,qCAAoC;AAGpC,iDAA6C;AAC7C,2DAAuD;AACvD,mDAA+C;AAC/C,iDAA6C;AAC7C,mDAA+C;AAC/C,qDAAiD;AACjD,+CAA2C;AAC3C,6EAAyE;AACzE,uDAAmD;AACnD,yDAAqD;AACrD,+EAA2E;AAC3E,+DAA2D;AAC3D,6CAAyC;AACzC,yCAAqC;AACrC,mDAA+C;AAC/C,+CAA2C;AAC3C,iEAA6D;AAC7D,qDAAiD;AACjD,oDAAgD;AAChD,gEAA4D;AAC5D,uEAAmE;AACnE,kEAA8D;AAC9D,oCAA2C;AAE3C,SAAgB,kBAAkB,CAAC,UAAkB,EAAE,QAAgB;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,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CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;SAC/B,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,EAAE,EAAE,CACtB,oBAAO,CAAC,uBAAuB,CAAC,SAAS,EAAE,oBAAO,CAAC,gBAAgB,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,QAAQ,CAAC,CAClG,CACR,CAAA;AACL,CAAC;AAlED,wCAkEC"}
|
package/dist/src/typegen.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AppOptions } from './types';
|
|
2
|
-
export declare function runTypeGen(appOptions: AppOptions): void
|
|
2
|
+
export declare function runTypeGen(appOptions: AppOptions): Promise<void>;
|
package/dist/src/typegen.js
CHANGED
|
@@ -11,7 +11,7 @@ if (parseInt(ts.versionMajorMinor.split('.')[0]) < 5) {
|
|
|
11
11
|
;
|
|
12
12
|
ts.defaultMaximumTruncationLength = Infinity;
|
|
13
13
|
}
|
|
14
|
-
function runTypeGen(appOptions) {
|
|
14
|
+
async function runTypeGen(appOptions) {
|
|
15
15
|
let program;
|
|
16
16
|
let resetProgram;
|
|
17
17
|
const { log } = appOptions;
|
|
@@ -37,7 +37,7 @@ function runTypeGen(appOptions) {
|
|
|
37
37
|
const createProgram = ts.createEmitAndSemanticDiagnosticsBuilderProgram;
|
|
38
38
|
const host = ts.createWatchCompilerHost(appOptions.tsConfigPath, compilerOptions.options, {
|
|
39
39
|
...ts.sys,
|
|
40
|
-
writeFile(
|
|
40
|
+
writeFile(_path, _data, _writeByteOrderMark) {
|
|
41
41
|
return null;
|
|
42
42
|
},
|
|
43
43
|
}, createProgram, reportDiagnostic, reportWatchStatusChanged);
|
|
@@ -64,10 +64,10 @@ function runTypeGen(appOptions) {
|
|
|
64
64
|
return origCreateProgram(rootNames, options, host, oldProgram);
|
|
65
65
|
};
|
|
66
66
|
const origPostProgramCreate = host.afterProgramCreate;
|
|
67
|
-
host.afterProgramCreate = (prog) => {
|
|
67
|
+
host.afterProgramCreate = async (prog) => {
|
|
68
68
|
program = prog.getProgram();
|
|
69
69
|
origPostProgramCreate(prog);
|
|
70
|
-
goThroughAllTheFiles(program, appOptions);
|
|
70
|
+
await goThroughAllTheFiles(program, appOptions);
|
|
71
71
|
};
|
|
72
72
|
ts.createWatchProgram(host);
|
|
73
73
|
}
|
|
@@ -82,12 +82,12 @@ function runTypeGen(appOptions) {
|
|
|
82
82
|
else {
|
|
83
83
|
log(`⛔ No tsconfig.json found! No source file specified.`);
|
|
84
84
|
}
|
|
85
|
-
function goThroughAllTheFiles(program, appOptions) {
|
|
85
|
+
async function goThroughAllTheFiles(program, appOptions) {
|
|
86
86
|
const parsedLogics = (0, visit_1.visitProgram)(program, appOptions);
|
|
87
87
|
if (appOptions.verbose) {
|
|
88
88
|
log(`🗒️ ${parsedLogics.length} logic${parsedLogics.length === 1 ? '' : 's'} found!`);
|
|
89
89
|
}
|
|
90
|
-
const response = (0, print_1.printToFiles)(program, appOptions, parsedLogics);
|
|
90
|
+
const response = await (0, print_1.printToFiles)(program, appOptions, parsedLogics);
|
|
91
91
|
if (!appOptions.write && !appOptions.watch && (response.filesToWrite > 0 || response.filesToModify > 0)) {
|
|
92
92
|
process.exit(1);
|
|
93
93
|
}
|
|
@@ -100,7 +100,7 @@ function runTypeGen(appOptions) {
|
|
|
100
100
|
}
|
|
101
101
|
let round = 0;
|
|
102
102
|
while ((round += 1)) {
|
|
103
|
-
const { writtenFiles, filesToModify } = goThroughAllTheFiles(program, appOptions);
|
|
103
|
+
const { writtenFiles, filesToModify } = await goThroughAllTheFiles(program, appOptions);
|
|
104
104
|
if (writtenFiles === 0 && filesToModify === 0) {
|
|
105
105
|
log(`👋 Finished writing files! Exiting.`);
|
|
106
106
|
process.exit(0);
|
package/dist/src/typegen.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typegen.js","sourceRoot":"","sources":["../../src/typegen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,MAAM,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;gBAEvF,IAAI,YAAY,KAAK,CAAC,IAAI,aAAa,KAAK,CAAC,EAAE,CAAC;oBAC5C,GAAG,CAAC,qCAAqC,CAAC,CAAA;oBAC1C,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;gBACnB,CAAC;gBAED,IAAI,KAAK,GAAG,EAAE,EAAE,CAAC;oBACb,GAAG,CAAC,iEAAiE,CAAC,CAAA;oBACtE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;gBACnB,CAAC;gBAED,YAAY,EAAE,CAAA;YAClB,CAAC;QACL,CAAC;aAAM,CAAC;YAEJ,oBAAoB,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;QAC7C,CAAC;IACL,CAAC;AACL,CAAC;AA3ID,gCA2IC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppOptions, ParsedLogic } from '../types';
|
|
2
2
|
import * as ts from 'typescript';
|
|
3
|
-
export declare function convertToBuilders(appOptions: AppOptions, program: ts.Program, filename: string, parsedLogics: ParsedLogic[]): void
|
|
3
|
+
export declare function convertToBuilders(appOptions: AppOptions, program: ts.Program, filename: string, parsedLogics: ParsedLogic[]): Promise<void>;
|
|
@@ -32,7 +32,7 @@ const supportedProperties = {
|
|
|
32
32
|
urlToAction: 'kea-router',
|
|
33
33
|
events: 'kea',
|
|
34
34
|
};
|
|
35
|
-
function convertToBuilders(appOptions, program, filename, parsedLogics) {
|
|
35
|
+
async function convertToBuilders(appOptions, program, filename, parsedLogics) {
|
|
36
36
|
var _a;
|
|
37
37
|
const { log } = appOptions;
|
|
38
38
|
const sourceFile = program.getSourceFile(filename);
|
|
@@ -96,7 +96,7 @@ function convertToBuilders(appOptions, program, filename, parsedLogics) {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
const newText = (0, print_1.runThroughPrettier)((0, recast_1.print)(ast).code, filename);
|
|
99
|
+
const newText = await (0, print_1.runThroughPrettier)((0, recast_1.print)(ast).code, filename);
|
|
100
100
|
fs.writeFileSync(filename, newText);
|
|
101
101
|
log(`🔥 Converted to builders: ${osPath.relative(process.cwd(), filename)}`);
|
|
102
102
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertToBuilders.js","sourceRoot":"","sources":["../../../src/write/convertToBuilders.ts"],"names":[],"mappings":";;;AAEA,mCAAqC;AACrC,0CAAmD;AACnD,yBAAwB;AACxB,+BAA8B;AAC9B,
|
|
1
|
+
{"version":3,"file":"convertToBuilders.js","sourceRoot":"","sources":["../../../src/write/convertToBuilders.ts"],"names":[],"mappings":";;;AAEA,mCAAqC;AACrC,0CAAmD;AACnD,yBAAwB;AACxB,+BAA8B;AAC9B,mCAAsE;AAEtE,MAAM,mBAAmB,GAAG;IACxB,KAAK,EAAE,KAAK;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,KAAK;IACd,OAAO,EAAE,KAAK;IACd,QAAQ,EAAE,KAAK;IACf,OAAO,EAAE,aAAa;IACtB,KAAK,EAAE,WAAW;IAClB,aAAa,EAAE,mBAAmB;IAClC,YAAY,EAAE,mBAAmB;IACjC,QAAQ,EAAE,KAAK;IACf,SAAS,EAAE,KAAK;IAChB,eAAe,EAAE,KAAK;IACtB,MAAM,EAAE,WAAW;IACnB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,CAAC,UAAU,EAAE,WAAW,CAAC;IAC/B,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,UAAU;IACnB,SAAS,EAAE,UAAU;IACrB,UAAU,EAAE,UAAU;IACtB,WAAW,EAAE,YAAY;IACzB,WAAW,EAAE,YAAY;IACzB,MAAM,EAAE,KAAK;CAChB,CAAA;AAEM,KAAK,UAAU,iBAAiB,CACnC,UAAsB,EACtB,OAAmB,EACnB,QAA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,CAAC,CAAA;QACrD,CAAC;IACL,CAAC,CAAC,CAAA;IAEF,KAAK,MAAM,CAAC,UAAU,EAAE,wBAAwB,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;QACjF,KAAK,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,IAAI,wBAAwB,EAAE,CAAC;YAC7D,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,UAAU,IAAI,CAAC,KAAK,SAAS,CAAC,EAAE,CAAC;gBACrG,IAAA,oBAAY,EAAC,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAA;gBAC3E,MAAA,OAAO,CAAC,UAAU,qCAAlB,OAAO,CAAC,UAAU,IAAM,EAAE,EAAA;gBAC1B,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC,CAAA;YACrD,CAAC;QACL,CAAC;IACL,CAAC;IAED,MAAM,OAAO,GAAG,MAAM,IAAA,0BAAkB,EAAC,IAAA,cAAK,EAAC,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IACnE,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IAEnC,GAAG,CAAC,6BAA6B,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAA;AAChF,CAAC;AA3FD,8CA2FC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { AppOptions, ParsedLogic } from '../types';
|
|
2
2
|
import * as ts from 'typescript';
|
|
3
|
-
export declare function writePaths(appOptions: AppOptions, program: ts.Program, filename: string, parsedLogics: ParsedLogic[]): void
|
|
3
|
+
export declare function writePaths(appOptions: AppOptions, program: ts.Program, filename: string, parsedLogics: ParsedLogic[]): Promise<void>;
|
|
@@ -6,7 +6,7 @@ const print_1 = require("../print/print");
|
|
|
6
6
|
const fs = require("fs");
|
|
7
7
|
const osPath = require("path");
|
|
8
8
|
const utils_1 = require("./utils");
|
|
9
|
-
function writePaths(appOptions, program, filename, parsedLogics) {
|
|
9
|
+
async function writePaths(appOptions, program, filename, parsedLogics) {
|
|
10
10
|
const { log } = appOptions;
|
|
11
11
|
const sourceFile = program.getSourceFile(filename);
|
|
12
12
|
const rawCode = sourceFile.getText();
|
|
@@ -43,7 +43,7 @@ function writePaths(appOptions, program, filename, parsedLogics) {
|
|
|
43
43
|
(0, utils_1.visitAllKeaCalls)(ast, parsedLogics, filename, ({ path, parsedLogic }) => {
|
|
44
44
|
const stmt = path.node;
|
|
45
45
|
const arg = stmt.arguments[0];
|
|
46
|
-
const logicPath = parsedLogic.path.filter(p => p !== '..');
|
|
46
|
+
const logicPath = parsedLogic.path.filter((p) => p !== '..');
|
|
47
47
|
if (utils_1.t.ObjectExpression.check(arg)) {
|
|
48
48
|
const pathProperty = arg.properties.find((property) => utils_1.t.ObjectProperty.check(property) &&
|
|
49
49
|
utils_1.t.Identifier.check(property.key) &&
|
|
@@ -64,7 +64,7 @@ function writePaths(appOptions, program, filename, parsedLogics) {
|
|
|
64
64
|
];
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
|
-
const newText = (0, print_1.runThroughPrettier)((0, recast_1.print)(ast).code, filename);
|
|
67
|
+
const newText = await (0, print_1.runThroughPrettier)((0, recast_1.print)(ast).code, filename);
|
|
68
68
|
fs.writeFileSync(filename, newText);
|
|
69
69
|
log(`🔥 Path added: ${osPath.relative(process.cwd(), filename)}`);
|
|
70
70
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writePaths.js","sourceRoot":"","sources":["../../../src/write/writePaths.ts"],"names":[],"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'typescript';
|
|
3
|
-
export declare function writeTypeImports(appOptions: AppOptions, program: ts.Program, filename: string, logicsNeedingImports: ParsedLogic[], parsedLogics: ParsedLogic[]): void
|
|
3
|
+
export declare function writeTypeImports(appOptions: AppOptions, program: ts.Program, filename: string, logicsNeedingImports: ParsedLogic[], parsedLogics: ParsedLogic[]): Promise<void>;
|
|
@@ -6,7 +6,7 @@ const osPath = require("path");
|
|
|
6
6
|
const print_1 = require("../print/print");
|
|
7
7
|
const fs = require("fs");
|
|
8
8
|
const utils_1 = require("./utils");
|
|
9
|
-
function writeTypeImports(appOptions, program, filename, logicsNeedingImports, parsedLogics) {
|
|
9
|
+
async function writeTypeImports(appOptions, program, filename, logicsNeedingImports, parsedLogics) {
|
|
10
10
|
const { log } = appOptions;
|
|
11
11
|
const sourceFile = program.getSourceFile(filename);
|
|
12
12
|
const rawCode = sourceFile.getText();
|
|
@@ -49,7 +49,7 @@ function writeTypeImports(appOptions, program, filename, logicsNeedingImports, p
|
|
|
49
49
|
utils_1.b.tsTypeReference(utils_1.b.identifier(parsedLogic.logicTypeName)),
|
|
50
50
|
]);
|
|
51
51
|
});
|
|
52
|
-
const newText = (0, print_1.runThroughPrettier)((0, recast_1.print)(ast).code, filename);
|
|
52
|
+
const newText = await (0, print_1.runThroughPrettier)((0, recast_1.print)(ast).code, filename);
|
|
53
53
|
fs.writeFileSync(filename, newText);
|
|
54
54
|
log(`🔥 Import added: ${osPath.relative(process.cwd(), filename)}`);
|
|
55
55
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writeTypeImports.js","sourceRoot":"","sources":["../../../src/write/writeTypeImports.ts"],"names":[],"mappings":";;;AAEA,mCAAqC;AACrC,+BAA8B;AAC9B,0CAAmD;AACnD,yBAAwB;AACxB,mCAAwD;
|
|
1
|
+
{"version":3,"file":"writeTypeImports.js","sourceRoot":"","sources":["../../../src/write/writeTypeImports.ts"],"names":[],"mappings":";;;AAEA,mCAAqC;AACrC,+BAA8B;AA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;IACN,CAAC;IAGD,IAAA,wBAAgB,EAAC,GAAG,EAAE,oBAAoB,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,EAAE,EAAE;QAC5E,IAAI,CAAC,IAAI,CAAC,cAAc,GAAG,SAAC,CAAC,4BAA4B,CAAC;YACtD,SAAC,CAAC,eAAe,CAAC,SAAC,CAAC,UAAU,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;SAC7D,CAAC,CAAA;IACN,CAAC,CAAC,CAAA;IAEF,MAAM,OAAO,GAAG,MAAM,IAAA,0BAAkB,EAAC,IAAA,cAAK,EAAC,GAAG,CAAC,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;IACnE,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAA;IAEnC,GAAG,CAAC,oBAAoB,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAA;AACvE,CAAC;AAzED,4CAyEC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2019.full.d.ts","../node_modules/typescript/lib/typescript.d.ts","../node_modules/ts-clone-node/dist/esm/index.d.ts","../src/types.ts","../node_modules/@types/prettier/index.d.ts","../src/print/printactions.ts","../src/print/printasyncactions.ts","../src/print/printreducers.ts","../src/print/printreducer.ts","../src/print/printselector.ts","../src/print/printselectors.ts","../src/print/printvalues.ts","../src/print/printinternalselectortypes.ts","../src/print/printactionkeys.ts","../src/print/printactiontypes.ts","../src/print/printinternalreduceractions.ts","../src/print/printactioncreators.ts","../src/print/printprops.ts","../src/print/printkey.ts","../src/print/printdefaults.ts","../src/print/printevents.ts","../src/print/printsharedlisteners.ts","../src/print/printlisteners.ts","../node_modules/ast-types/lib/gen/namedtypes.d.ts","../node_modules/ast-types/lib/gen/kinds.d.ts","../node_modules/ast-types/lib/gen/builders.d.ts","../node_modules/ast-types/lib/types.d.ts","../node_modules/ast-types/lib/path.d.ts","../node_modules/ast-types/lib/scope.d.ts","../node_modules/ast-types/lib/node-path.d.ts","../node_modules/ast-types/lib/path-visitor.d.ts","../node_modules/ast-types/lib/gen/visitor.d.ts","../node_modules/ast-types/lib/main.d.ts","../node_modules/recast/lib/options.d.ts","../node_modules/recast/lib/parser.d.ts","../node_modules/recast/lib/printer.d.ts","../node_modules/recast/main.d.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../src/write/utils.ts","../src/write/writepaths.ts","../src/write/writetypeimports.ts","../src/print/printinternalextrainput.ts","../src/write/converttobuilders.ts","../src/print/print.ts","../src/utils.ts","../src/visit/visitactions.ts","../src/visit/visitreducers.ts","../src/visit/visitselectors.ts","../src/visit/visitloaders.ts","../src/visit/visitconnect.ts","../src/visit/visitwindowvalues.ts","../src/visit/visitprops.ts","../src/visit/visitkey.ts","../src/visit/visitpath.ts","../src/visit/visitlisteners.ts","../src/visit/visitevents.ts","../src/visit/visitdefaults.ts","../src/visit/visitsharedlisteners.ts","../src/visit/visit.ts","../src/cache.ts","../package.json","../src/typegen.ts","../src/index.ts","../src/__tests__/utils.ts","../src/__tests__/e2e/actions.ts","../src/__tests__/e2e/connect.ts","../src/__tests__/e2e/loaders.ts","../src/__tests__/e2e/reducers.ts","../src/__tests__/e2e/selectors.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts","../src/cli/typegen.ts","../src/visit/__tests__/visit.ts","../node_modules/@types/jest/node_modules/jest-diff/build/cleanupsemantic.d.ts","../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../node_modules/@types/jest/node_modules/jest-diff/build/difflines.d.ts","../node_modules/@types/jest/node_modules/jest-diff/build/printdiffs.d.ts","../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts3.4/base.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"76f838d5d49b65de83bc345c04aa54c62a3cfdb72a477dc0c0fce89a30596c30","affectsGlobalScope":true},{"version":"73e370058f82add1fdbc78ef3d1aab110108f2d5d9c857cb55d3361982347ace","affectsGlobalScope":true},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"08f6861df84fba9719c14d5adc3ba40be9f0c687639e6c4df3c05b9301b8ff94","e4ba061c5bcfc75ef8a18eaf677e0ea007ca67931a12aab286cc4a851ce49263","d95886db9100e1c68f7a5d4329d493fa281511c27f92af2918ac6c3bc7aba39b",{"version":"bbf874a1807c0683681269507ed0356518be2e3b6b904e0b1a290fed87ff161a","signature":"e388f02e5a081942e04d35217cb4089fbe45445f38e1a134e4e1a8e8e197ff97"},"74940ccce687ffb55f99053deb278496e43ffd51020f6e81a8be80545f6bd7ec",{"version":"7a79f57af2b26a8f058d23809ba32d2e6982da9e608fc3210e1b262d70d36c03","signature":"2db4efde46545d5a5c29e3647446111f8df0b721118fa2e3b78c042ce49dbccc"},{"version":"ddf203d2d68cb39d4dbf31d60f3717776d5d6e4dbb9783fe16c9ed9750fe6c86","signature":"5c982fd275974dee78c2eddbaa0eebb0c9712079a226b36e7afdd0dd60709503"},{"version":"8c81f2a624413c07807dbd87b34fab9cbb7d2a86fee938669e35bf036d50b5c8","signature":"865068c6cc099ab80f2249d3561b47ea5209196ff51dd9ded3bb7a2774f22a7a"},{"version":"4a33a0fb4c10275c8820df39423710d5de7dda7749a1c3103850c4b3d2fae7ed","signature":"d3600214f6f258ec2746139a9b257c29d5b4fec20754aca289a5d55510e5b4db"},{"version":"9f37b1252bd7654290c6bdcca2c3e7fb34aa8da416611b9deb6bced594de8135","signature":"b6b93851deea77a46a97e039b4f177c6e681295295a9e864129b743e4e3bca32"},{"version":"b60e73601ff21c4e2a88fb1399c2195a3e1b409d242d17564da5510448a01ddf","signature":"abe9736006499dbc222eeb90efe819aa118ed17a85db0681b7839dabe4cc9ea6"},{"version":"cbc41122e6d975ce71a7f3329b7d337a33d68bd79e0773bcabc58850daaf3990","signature":"ee32d96c03d514418ac4e1e3b9bfa49ff8e901591165c0bd0d9ed23f052f598d"},{"version":"089747856896c15af12537b1245a35d8dbd5ddc26760a666d92b315683ce1ba3","signature":"469e209b39654526988c5d09bc849b0b676855856f72ed6349ad09c25bce1298"},{"version":"bbba0f78e0b7c4c4b62cf0810fff2b774225ba71c1f6f08ff1fd6928c1fad611","signature":"bcfc044f34e1ffd0c600f7090acbc498620c1dead2b42a238bf22bba976eba56"},{"version":"4081e497d4e1be2671976aea943a34daafe4ca285b92550defea3f6c5e6e8965","signature":"af7f71b86f0a2ca5098e6dcfe14c4225aa91daeeb0bd27488a064f95ff68ff9a"},{"version":"6012f213231f72f4c06092717fc40f9fa8f514c5e583b27550c3fe1441fb330e","signature":"b8312fcd843493d3ab5e202543a1817d6dd6f7ad0c8777376e359ee1a34fa713"},{"version":"8b0d0aa18240c76425f8ae474926c9fd65a3ac3264111991653aec7eb47c4b30","signature":"a7f99312ae020a7885310b4067f774dd3f4f15d7f59acc75657353819de04a80"},{"version":"66da834d094272008b62b0c49fa1d69ce290800ead4fa92d251137444a6f78c7","signature":"90687ebdaa3055520bafac087f4a1431b2ea634b0e387008b22cfba369679703"},{"version":"5c7dafd1da3c737c4f1b95572e5e0de3fa88b6529642f7bb705da39358c52635","signature":"aa1462c95e4189181877a120a86fd6ff3e95677c3191fee800fff9bb81e082a2"},{"version":"26927331a447d6d14dfa26f55bf8ddefe1f5b62ad067ea0b31d1a681596c059d","signature":"171db735fcfcbb6c2a530122d6fb9afc465e40313ed1c0c782300d32e9743bed"},{"version":"76e655dfdf12ba56ef51a07dda9c49fce0cfff9ca749f91fee171b45dc390987","signature":"f308b6d0564c9c41836f05b330413f5ff83126860dec9f38bea5dec43916dbe6"},{"version":"dbd69dad6a81cb01b63feeec89f78c381d3aecc0e20cd83f06f99cf97fdd0184","signature":"434ac9f12fd3de67b62526d2df0ff474602ab3c8011312933838519a0a268625"},{"version":"5b49c4ba7b58d71667ecbbfaefe9fec5bb1cd5326a8548fb8f99f99b2a6f952e","signature":"25cfa3a7a22eed46001fe4f22d717e7a5af972805f3bf2a034bb511a047533e5"},"0295c7a5d5d956391ab9bf0410e73a89e25fe26810f9a1d823cc794d682cdafc","19826a846db870c2261a3c4cf0695df889d9fe3eebe7775f3f5bc76fe7ad07a7","e04cafd03370139cdb0c846273cb19eb4264be0073c7baf78e9b2c16ffb74813","7c01c77fb7d8664daa64819245d785e106e0a3cb6e43da64346e4400d7fa9401","8c2ca98f4713d989d610fbd38a44316bc43c50aa26983e62dc31002f32ce63fa","ee931610d1cf7a6e666fad138187751392fc88bee931b94ac8c4571208dc7370","53543b3b64e624a81fc5876da6d72c94dd87655e7afc10988cf82ce7cbc74180","967e68e99b8a80551837321442a0e2f12ef50aa1ce567ec991ac6bf062a0c7cf","144ab2f3ef7404caf39c6acc88d248d7e55ab3dd1c4c0d89367ad12169aec113","759002d4454b851c51b3585e0837c77d159c59957fc519c876449ee5d80a6643","07c50b6db67b8b943aed3e410bfeebfb6d3ba1fd1e2819bc889e48f81e94ed2d","e3a5287471fb08f053c06fd998632792aa5f022e45278f1e6dd55fb2fa9e7362","28a6c8eeb48e165920067b9193555649fc43c2a28c450f23f622e5eb043d9463","1147c3efa5a256bcd6a3d2cfaf764185b7120bf985f8412d9bae596a0348f77b","e1d0b45d2995163faae5784de982d49be585d0f77073ec4567850e2feb20e880","b25c5f2970d06c729f464c0aeaa64b1a5b5f1355aa93554bb5f9c199b8624b1e","98c2e3c00ed72daf568c0526ea4f4257f2c43dc5eaacd3d703c3b33f6df1ae86","3e0a34f7207431d967dc32d593d1cda0c23975e9484bc8895b39d96ffca4a0d8","cc0e8c69a59c7e4e15bd28e1eebe9a660c47c202e298cb20a93285368051193f","6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2",{"version":"7e08328a99f81bc7b2391e7727190716801cb68ddd3ad2a99eb0a74645aa2b98","signature":"b506bc7c9a37a229ffc873960431c41321bb8c3262af3327e533a55f38f413d0"},{"version":"34b1026539642b0fd2b746c5186675bebccac559183dd32ee4003510d9853f9f","signature":"83e38152c0dbe1cbfb256ab63d092dbbb90af0ebe27ef552632c023325caf497"},{"version":"82c418ef359c5b276df041ab3c69df0b1c8d312859a11e6aab6a4bdbd80178f4","signature":"876dc863b4d90a707a9fe87d2e0b13b193c6e50a99ec451410a0fa79ad4b54e4"},{"version":"31e23f94ebbe9a26fde277d3970a8849474483588881df72c3eb43e8ecece108","signature":"3bc95c828d5c1b430c7d81946283f17e501d740545117e20e097db8fdaa9ef59"},{"version":"a41c61e6985623529b89833a80f19a0efb2da4360e68784657a165542dce8bfa","signature":"d696bd6cd1644d8a5f08de037d060a6ace5b9b1272d36f488e0fd6278212c524"},{"version":"61edd5112ab88deb635880f620d14b299a6daaee84ed608bb8707fef26017dbc","signature":"b4a74b062f8c3d84906b0b51f5cf0a0a788fc2d3729d4104b842422c6e184e6e"},{"version":"a6f83ff71ed96b935830173ac0a986a280ac398078616b7c77dac2c57bf1c4a6","signature":"f0eca2e5ceb86d04357055a999c1e63245fa41b390a46e9e9bb9563e288801d9"},{"version":"e46f2d5ae29c93238c278b24cd142af041869b463aedd4475ab6139abef0b03d","signature":"7fe23a854adfc06346a96986e5dbb20723bd035b32412cecd0fe835568b224cd"},{"version":"5d380b2911511138a82eeb68ee59060c70637e266118eb8f7a24c01e0b93a108","signature":"c7c8580d7d5c3abdcf400b4b3054bfdd861ddfdbed25e3d807cfe5d92e548cd3"},{"version":"9482fdd3cd3e06f66a4d5df20c6309c98bb54e19b40a5eb615e8abd70df0b0e8","signature":"46b4a8eb9197675c9002635a36836e07b54a71f2f8de96f3192fe64e1a7b05bf"},{"version":"217deef772a86c022a5177954d267a73c63537f5802f2901dfa02d9b5c5df06e","signature":"deda9ba2d0fff599545584ec0275c7f5a8dff221c7c5e5548ca5bdc255c97f47"},{"version":"41ed9a37d85138ada0c02c594a690a9054d9da744fe7eeb94e77be300e74be1a","signature":"154fb094b70176258ffdb406781b22a8acd3f97170df2488f97751e2cab312c1"},{"version":"e8ec8bc137e5be8d5ed47b33387832936af19a3507001e2db290ff8c4ec3074e","signature":"add0a4537c22ad5a6a10cd68e1dc7564faba1fae717a35f63bbbcf60b11ee0e1"},{"version":"d30310836b9a6740fbba57d9a44958ca6d9cd757093352c64c3cc83d0245105e","signature":"939f0db622a7e1a3d8576399a64820defde36ac5d83c8ec5e696898cfa372084"},{"version":"8c3e3c420bcce1f4e56427e6309d8bf79457429a2abd8aa249a68d508eb87549","signature":"a391d62939100af602c15f352c96a0ea57a40cc29d2539c1b285e6916e15d6c9"},{"version":"7ff5bf56634c720e1020fd14688c0e1f2dcf71ad93f9bad21c91b60cce75f06c","signature":"1999b23fbe0cc39698725faa581ed6567b48a692511551b561e2735ea85bafae"},{"version":"6e85db15a0c3807aa6d75472987e793269879de7286ffa56441be972a40d1ef7","signature":"4f3ae880486cbd9310e10837d2ed874b121f9ac2e950d7eedce4f99cb356e224"},{"version":"645dee3a62cb0c82cd6d65a54296d35e9c7531c68014dadae81bcde23ee035d4","signature":"362c32aeee74fc64fb90d44767dc0721948c568f82263dcbc08b0d75014ad17c"},{"version":"b5fe48d3a0c5ad0d3450513886a6d729d8d05038f42d2d75df536c0053421b9f","signature":"c1a97113c805fea2bf68c23d0e70412278fcacdfbb2148b8a80c631e0663bce2"},{"version":"10242942345a9abf41478af06b55e7467603c25d9734543ade5de5e4e06b1d20","signature":"a99fdb0cd02672a7cb74a7c4add2356b55be4a3be1bcf192b947ef9dfad19df6"},{"version":"6a43a0b27a265aa229084d299e332bef6b599a5fc335204536c1ed4724e6714b","signature":"e631a8dcbe6113b753f3e14db05237f29becea9551fe4feee602181633f57075"},{"version":"17da498c6f8a83a29387033930ef4b56719f84e52c311c65c98ae6b1eb9875ef","signature":"833253a2cde84bc8cd302d514ddc88ebb3e3334592d35f7e76a5887c3953ecb1"},"9594b6853bd3344fbea94cc260ae80e7599ad0044041faa0a0d24ba057a69ed5",{"version":"95fcd618cfd8627df80c029f1b5a5353a372fa8ec5156ceec7aca7e837e285f9","signature":"6c77afc9da69d8ff199acd1460cc75508f7449f259103891d20bc07e7a23dac3"},{"version":"38fb1bdc8e08eda52f9291e67c30d5e526a3786c37e192f786423090d99a2dad","signature":"d064a5581b5d53ca3e1682d146d6a44d82fd8bd6dbff933f84f9b33b8768ac42"},{"version":"bae374c17de2a936df4fd9e68d55cf14b0eff7301e4306388618f929f5a4825e","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"f41634b0d1cdf790612d1bd223bba91eaca6bdc5a225fd3a0e9a5d69d2260dd1","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"1f4afcf0ff54ea4494f68be70bd0ba58eda7a16830cccc72ac87dfa3262ac94f","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"16618a1f57f886ea2ba581bde464cd074ca11d518b4cc6a3a5902dcf5ec24d3d","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"ff975b363ac892f0508fbd187b765e49ab8c70ca093ee5b19b927b84137d34b7","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"4b093729b0d64f046a98d1b0d79ce9cb361ea8a32a87b86fe475eefabadad101","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"fdfbe321c556c39a2ecf791d537b999591d0849e971dd938d88f460fea0186f6","1db6491f25ced62f23f06d1f3700a790df0971726acb33669bbf4a8de2f769a9",{"version":"8e80ef2849372a8a644a315032a3b090f5eea5d25687755f944d7d03f999ff9c","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012"},{"version":"83251e0cbcb139e6f861efda493a9eab0f0ba617d3aa275bf9558ec2f37ad678","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"71f30fba971582dc744373cbc8b06c1eb64dc24a6ccbc9b457f94fb68c67cb4e","affectsGlobalScope":true},{"version":"e9a43c3ee6fb8376bb9a4d318a660412c6abcfe5161c106e801e5431b41b7476","affectsGlobalScope":true},"7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641","5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1","89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d","714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef",{"version":"23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096","affectsGlobalScope":true},"0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83","64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d","5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed","2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317",{"version":"06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70","affectsGlobalScope":true},{"version":"bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb","affectsGlobalScope":true},"a106a0bea088b70879ac88ff606dc253c0cc474ea05ad3a282b8bfb1091ae576","c98ce957db9eebd75f53edda3f6893e05ab2d2283b5667b18e31bcdb6427ed10","1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7","4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf","1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba","05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466","8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340","f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657","32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc","0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca","ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f",{"version":"06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e","affectsGlobalScope":true},"a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8","f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3","73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da","8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71","d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25","94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa","2d713cbcbd5bcc38d91546eaeea7bb1c8686dc4a2995a28556d957b1b9de11d9","bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3","0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a","3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837","631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9","2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7","da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14","66679e8ffbf1fddef1796c60757e54e6e6551dd9823f75ef2f80176473bdaaff","ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877","515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977","d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf","ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb","19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","9c4c395e927045b324877acdc4bfb95f128f36bc9f073266a2f0342495075a4f"],"root":[47,[49,66],[87,108],[110,117],120,121],"options":{"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"target":6},"fileIdsList":[[81],[81,82,83,84,85],[81,83],[126,128],[122,123],[122,123,124,125],[127],[174],[131],[173,174],[132],[133,141,142,149,158],[133,134,141,149],[165],[136,137,142,150],[137,158],[138,139,141,149],[139],[140,141],[141],[141,142,143,158,164],[142,143],[144,149,158,164],[141,142,144,145,149,158,161,164],[144,146,161,164],[175],[141,147],[148,164],[139,141,149,158],[150],[151],[131,152],[163],[154],[155],[141,156],[156,157,165,167],[141,158],[159],[160],[149,161],[162],[130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169],[170,171,172],[149,163],[155,164],[158,166],[167],[172],[141,143,158,164,167,168],[158,169],[118],[67,68],[67],[68,70],[67,73,74],[67,69,70,71,73,74,75],[70,71,72],[70,73,75],[70],[70,73],[67,69],[77],[76,77,78,79],[45],[93],[45,93],[45,47,107,142,151],[45,47,110,119,142,151],[47,110],[45,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,88,89,90,91,108,142,151],[45,47,93],[45,47],[45,47,92,107,108,109,151],[45,46],[45,46,47,92,107,151],[93,107],[45,46,47,93,94,95,96,97,98,99,100,101,102,103,104,105,106,142,151],[45,47,80,87,92,142,151],[47,80,86],[47],[47,69,80]],"referencedMap":[[83,1],[86,2],[82,1],[84,3],[85,1],[129,4],[124,5],[126,6],[125,5],[128,7],[174,8],[131,9],[175,10],[132,11],[133,12],[134,13],[135,14],[136,15],[137,16],[138,17],[139,18],[140,19],[141,20],[142,21],[143,22],[144,23],[145,24],[146,25],[176,26],[147,27],[148,28],[149,29],[150,30],[151,31],[152,32],[153,33],[154,34],[155,35],[156,36],[157,37],[158,38],[159,39],[160,40],[161,41],[162,42],[170,43],[173,44],[163,45],[164,46],[165,14],[166,47],[167,48],[172,49],[168,50],[169,51],[119,52],[69,53],[68,54],[67,55],[75,56],[76,57],[73,58],[74,59],[71,60],[72,61],[70,62],[78,63],[80,64],[46,65],[113,66],[114,66],[115,66],[116,66],[117,66],[112,67],[108,68],[120,69],[111,70],[92,71],[60,72],[57,72],[49,72],[58,72],[50,72],[63,72],[64,73],[90,73],[59,73],[56,73],[62,73],[66,73],[61,73],[52,72],[51,72],[53,72],[54,72],[65,73],[55,72],[110,74],[47,75],[93,76],[121,77],[107,78],[94,72],[98,72],[105,72],[104,73],[101,72],[103,72],[97,72],[102,73],[100,72],[95,72],[96,72],[106,72],[99,72],[91,79],[87,80],[88,79],[89,79]],"exportedModulesMap":[[83,1],[86,2],[82,1],[84,3],[85,1],[129,4],[124,5],[126,6],[125,5],[128,7],[174,8],[131,9],[175,10],[132,11],[133,12],[134,13],[135,14],[136,15],[137,16],[138,17],[139,18],[140,19],[141,20],[142,21],[143,22],[144,23],[145,24],[146,25],[176,26],[147,27],[148,28],[149,29],[150,30],[151,31],[152,32],[153,33],[154,34],[155,35],[156,36],[157,37],[158,38],[159,39],[160,40],[161,41],[162,42],[170,43],[173,44],[163,45],[164,46],[165,14],[166,47],[167,48],[172,49],[168,50],[169,51],[119,52],[69,53],[68,54],[67,55],[75,56],[76,57],[73,58],[74,59],[71,60],[72,61],[70,62],[78,63],[80,64],[46,65],[108,73],[111,70],[92,73],[60,73],[57,73],[49,73],[58,73],[50,73],[63,73],[64,73],[90,73],[59,73],[56,73],[62,73],[66,73],[61,73],[52,73],[51,73],[53,73],[54,73],[65,73],[55,73],[110,81],[47,75],[93,73],[107,73],[94,73],[98,73],[105,73],[104,73],[101,73],[103,73],[97,73],[102,73],[100,73],[95,73],[96,73],[106,73],[99,73],[91,73],[87,82],[88,73],[89,73]],"semanticDiagnosticsPerFile":[83,81,86,82,84,85,129,122,124,126,125,123,128,127,174,131,175,132,133,134,135,136,137,138,139,140,141,142,143,130,171,144,145,146,176,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,170,173,163,164,165,166,167,172,168,169,48,118,119,69,68,67,75,76,73,74,71,72,70,77,78,79,80,46,42,43,9,7,8,13,12,2,14,15,16,17,18,19,20,21,3,22,4,23,27,24,25,26,28,29,30,5,31,32,33,34,6,44,38,35,36,37,39,40,1,41,11,10,45,109,113,114,115,116,117,112,108,120,111,92,60,57,49,58,50,63,64,90,59,56,62,66,61,52,51,53,54,65,55,110,47,93,121,107,94,98,105,104,101,103,97,102,100,95,96,106,99,91,87,88,89]},"version":"5.4.5"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2019.full.d.ts","../node_modules/typescript/lib/typescript.d.ts","../node_modules/ts-clone-node/dist/esm/index.d.ts","../src/types.ts","../node_modules/prettier/doc.d.ts","../node_modules/prettier/index.d.ts","../src/print/printactions.ts","../src/print/printasyncactions.ts","../src/print/printreducers.ts","../src/print/printreducer.ts","../src/print/printselector.ts","../src/print/printselectors.ts","../src/print/printvalues.ts","../src/print/printinternalselectortypes.ts","../src/print/printactionkeys.ts","../src/print/printactiontypes.ts","../src/print/printinternalreduceractions.ts","../src/print/printactioncreators.ts","../src/print/printprops.ts","../src/print/printkey.ts","../src/print/printdefaults.ts","../src/print/printevents.ts","../src/print/printsharedlisteners.ts","../src/print/printlisteners.ts","../node_modules/ast-types/lib/gen/namedtypes.d.ts","../node_modules/ast-types/lib/gen/kinds.d.ts","../node_modules/ast-types/lib/gen/builders.d.ts","../node_modules/ast-types/lib/types.d.ts","../node_modules/ast-types/lib/path.d.ts","../node_modules/ast-types/lib/scope.d.ts","../node_modules/ast-types/lib/node-path.d.ts","../node_modules/ast-types/lib/path-visitor.d.ts","../node_modules/ast-types/lib/gen/visitor.d.ts","../node_modules/ast-types/lib/main.d.ts","../node_modules/recast/lib/options.d.ts","../node_modules/recast/lib/parser.d.ts","../node_modules/recast/lib/printer.d.ts","../node_modules/recast/main.d.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../src/write/utils.ts","../src/write/writepaths.ts","../src/write/writetypeimports.ts","../src/print/printinternalextrainput.ts","../src/write/converttobuilders.ts","../src/print/print.ts","../src/utils.ts","../src/visit/visitactions.ts","../src/visit/visitreducers.ts","../src/visit/visitselectors.ts","../src/visit/visitloaders.ts","../src/visit/visitconnect.ts","../src/visit/visitwindowvalues.ts","../src/visit/visitprops.ts","../src/visit/visitkey.ts","../src/visit/visitpath.ts","../src/visit/visitlisteners.ts","../src/visit/visitevents.ts","../src/visit/visitdefaults.ts","../src/visit/visitsharedlisteners.ts","../src/visit/visit.ts","../src/cache.ts","../package.json","../src/typegen.ts","../src/index.ts","../src/__tests__/utils.ts","../src/__tests__/e2e/actions.ts","../src/__tests__/e2e/connect.ts","../src/__tests__/e2e/loaders.ts","../src/__tests__/e2e/reducers.ts","../src/__tests__/e2e/selectors.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts","../src/cli/typegen.ts","../src/visit/__tests__/visit.ts","../node_modules/@types/jest/node_modules/jest-diff/build/cleanupsemantic.d.ts","../node_modules/@types/jest/node_modules/jest-diff/build/types.d.ts","../node_modules/@types/jest/node_modules/jest-diff/build/difflines.d.ts","../node_modules/@types/jest/node_modules/jest-diff/build/printdiffs.d.ts","../node_modules/@types/jest/node_modules/jest-diff/build/index.d.ts","../node_modules/@types/jest/node_modules/pretty-format/build/types.d.ts","../node_modules/@types/jest/node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/ts3.4/base.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/ts3.6/base.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/base.d.ts","../node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"824cb491a40f7e8fdeb56f1df5edf91b23f3e3ee6b4cde84d4a99be32338faee","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7",{"version":"87d693a4920d794a73384b3c779cadcb8548ac6945aa7a925832fe2418c9527a","affectsGlobalScope":true},{"version":"76f838d5d49b65de83bc345c04aa54c62a3cfdb72a477dc0c0fce89a30596c30","affectsGlobalScope":true},{"version":"73e370058f82add1fdbc78ef3d1aab110108f2d5d9c857cb55d3361982347ace","affectsGlobalScope":true},{"version":"80e18897e5884b6723488d4f5652167e7bb5024f946743134ecc4aa4ee731f89","affectsGlobalScope":true},{"version":"cd034f499c6cdca722b60c04b5b1b78e058487a7085a8e0d6fb50809947ee573","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"b20fe0eca9a4e405f1a5ae24a2b3290b37cf7f21eba6cbe4fc3fab979237d4f3","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"8073890e29d2f46fdbc19b8d6d2eb9ea58db9a2052f8640af20baff9afbc8640","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"08f6861df84fba9719c14d5adc3ba40be9f0c687639e6c4df3c05b9301b8ff94","e4ba061c5bcfc75ef8a18eaf677e0ea007ca67931a12aab286cc4a851ce49263","d95886db9100e1c68f7a5d4329d493fa281511c27f92af2918ac6c3bc7aba39b",{"version":"bbf874a1807c0683681269507ed0356518be2e3b6b904e0b1a290fed87ff161a","signature":"e388f02e5a081942e04d35217cb4089fbe45445f38e1a134e4e1a8e8e197ff97"},"f63cb353cd53da6be4a34f6fdece6316dac14fd62cccf9a4d2ce6bab2c37bc8c","e8fcf98d9454b9c75476a1f4450113dcd514ce2d0aa8738032ba971cd306473e",{"version":"7a79f57af2b26a8f058d23809ba32d2e6982da9e608fc3210e1b262d70d36c03","signature":"2db4efde46545d5a5c29e3647446111f8df0b721118fa2e3b78c042ce49dbccc"},{"version":"ddf203d2d68cb39d4dbf31d60f3717776d5d6e4dbb9783fe16c9ed9750fe6c86","signature":"5c982fd275974dee78c2eddbaa0eebb0c9712079a226b36e7afdd0dd60709503"},{"version":"8c81f2a624413c07807dbd87b34fab9cbb7d2a86fee938669e35bf036d50b5c8","signature":"865068c6cc099ab80f2249d3561b47ea5209196ff51dd9ded3bb7a2774f22a7a"},{"version":"4a33a0fb4c10275c8820df39423710d5de7dda7749a1c3103850c4b3d2fae7ed","signature":"d3600214f6f258ec2746139a9b257c29d5b4fec20754aca289a5d55510e5b4db"},{"version":"9f37b1252bd7654290c6bdcca2c3e7fb34aa8da416611b9deb6bced594de8135","signature":"b6b93851deea77a46a97e039b4f177c6e681295295a9e864129b743e4e3bca32"},{"version":"b60e73601ff21c4e2a88fb1399c2195a3e1b409d242d17564da5510448a01ddf","signature":"abe9736006499dbc222eeb90efe819aa118ed17a85db0681b7839dabe4cc9ea6"},{"version":"cbc41122e6d975ce71a7f3329b7d337a33d68bd79e0773bcabc58850daaf3990","signature":"ee32d96c03d514418ac4e1e3b9bfa49ff8e901591165c0bd0d9ed23f052f598d"},{"version":"089747856896c15af12537b1245a35d8dbd5ddc26760a666d92b315683ce1ba3","signature":"469e209b39654526988c5d09bc849b0b676855856f72ed6349ad09c25bce1298"},{"version":"bbba0f78e0b7c4c4b62cf0810fff2b774225ba71c1f6f08ff1fd6928c1fad611","signature":"bcfc044f34e1ffd0c600f7090acbc498620c1dead2b42a238bf22bba976eba56"},{"version":"4081e497d4e1be2671976aea943a34daafe4ca285b92550defea3f6c5e6e8965","signature":"af7f71b86f0a2ca5098e6dcfe14c4225aa91daeeb0bd27488a064f95ff68ff9a"},{"version":"6012f213231f72f4c06092717fc40f9fa8f514c5e583b27550c3fe1441fb330e","signature":"b8312fcd843493d3ab5e202543a1817d6dd6f7ad0c8777376e359ee1a34fa713"},{"version":"8b0d0aa18240c76425f8ae474926c9fd65a3ac3264111991653aec7eb47c4b30","signature":"a7f99312ae020a7885310b4067f774dd3f4f15d7f59acc75657353819de04a80"},{"version":"66da834d094272008b62b0c49fa1d69ce290800ead4fa92d251137444a6f78c7","signature":"90687ebdaa3055520bafac087f4a1431b2ea634b0e387008b22cfba369679703"},{"version":"5c7dafd1da3c737c4f1b95572e5e0de3fa88b6529642f7bb705da39358c52635","signature":"aa1462c95e4189181877a120a86fd6ff3e95677c3191fee800fff9bb81e082a2"},{"version":"26927331a447d6d14dfa26f55bf8ddefe1f5b62ad067ea0b31d1a681596c059d","signature":"171db735fcfcbb6c2a530122d6fb9afc465e40313ed1c0c782300d32e9743bed"},{"version":"76e655dfdf12ba56ef51a07dda9c49fce0cfff9ca749f91fee171b45dc390987","signature":"f308b6d0564c9c41836f05b330413f5ff83126860dec9f38bea5dec43916dbe6"},{"version":"dbd69dad6a81cb01b63feeec89f78c381d3aecc0e20cd83f06f99cf97fdd0184","signature":"434ac9f12fd3de67b62526d2df0ff474602ab3c8011312933838519a0a268625"},{"version":"5b49c4ba7b58d71667ecbbfaefe9fec5bb1cd5326a8548fb8f99f99b2a6f952e","signature":"25cfa3a7a22eed46001fe4f22d717e7a5af972805f3bf2a034bb511a047533e5"},"0295c7a5d5d956391ab9bf0410e73a89e25fe26810f9a1d823cc794d682cdafc","19826a846db870c2261a3c4cf0695df889d9fe3eebe7775f3f5bc76fe7ad07a7","e04cafd03370139cdb0c846273cb19eb4264be0073c7baf78e9b2c16ffb74813","7c01c77fb7d8664daa64819245d785e106e0a3cb6e43da64346e4400d7fa9401","8c2ca98f4713d989d610fbd38a44316bc43c50aa26983e62dc31002f32ce63fa","ee931610d1cf7a6e666fad138187751392fc88bee931b94ac8c4571208dc7370","53543b3b64e624a81fc5876da6d72c94dd87655e7afc10988cf82ce7cbc74180","967e68e99b8a80551837321442a0e2f12ef50aa1ce567ec991ac6bf062a0c7cf","144ab2f3ef7404caf39c6acc88d248d7e55ab3dd1c4c0d89367ad12169aec113","759002d4454b851c51b3585e0837c77d159c59957fc519c876449ee5d80a6643","07c50b6db67b8b943aed3e410bfeebfb6d3ba1fd1e2819bc889e48f81e94ed2d","e3a5287471fb08f053c06fd998632792aa5f022e45278f1e6dd55fb2fa9e7362","28a6c8eeb48e165920067b9193555649fc43c2a28c450f23f622e5eb043d9463","1147c3efa5a256bcd6a3d2cfaf764185b7120bf985f8412d9bae596a0348f77b","e1d0b45d2995163faae5784de982d49be585d0f77073ec4567850e2feb20e880","b25c5f2970d06c729f464c0aeaa64b1a5b5f1355aa93554bb5f9c199b8624b1e","98c2e3c00ed72daf568c0526ea4f4257f2c43dc5eaacd3d703c3b33f6df1ae86","3e0a34f7207431d967dc32d593d1cda0c23975e9484bc8895b39d96ffca4a0d8","cc0e8c69a59c7e4e15bd28e1eebe9a660c47c202e298cb20a93285368051193f","6f1d39d26959517da3bd105c552eded4c34702705c64d75b03f54d864b6e41c2",{"version":"7e08328a99f81bc7b2391e7727190716801cb68ddd3ad2a99eb0a74645aa2b98","signature":"b506bc7c9a37a229ffc873960431c41321bb8c3262af3327e533a55f38f413d0"},{"version":"7c853590c951138020b08e0d3edf3022717f1063aec58594436fd9bc68e70367","signature":"b93911e4ea3b4b6bddb36c14a45c5a93cf93443ab107f1d1e7742cd44d434909"},{"version":"3347c6b5d2a9c4adac4b085111093257b5fde2cc95557d049f2140e8113fdf62","signature":"6fafdfccf9308bdffa65cf39ad5d2be8fb89eeecf2526562a1f30c32883a3457"},{"version":"31e23f94ebbe9a26fde277d3970a8849474483588881df72c3eb43e8ecece108","signature":"3bc95c828d5c1b430c7d81946283f17e501d740545117e20e097db8fdaa9ef59"},{"version":"4eaa58f5070721cef922059e4c75388a1440f8c476ba63f1cb83212921fb50dd","signature":"f385d956149bb4148a0332d5255b6f315d235dd95c30e1240c739c866041b0ae"},{"version":"ebb499b0fdc5a6a5c6471091f8ab8759281723682dd10832874ef7f6ad860bb3","signature":"80b654a599b9d2cce4271dd1b821fcd56e59104e27e4adb6f0b4cfb8c35dff6f"},{"version":"a6f83ff71ed96b935830173ac0a986a280ac398078616b7c77dac2c57bf1c4a6","signature":"f0eca2e5ceb86d04357055a999c1e63245fa41b390a46e9e9bb9563e288801d9"},{"version":"e46f2d5ae29c93238c278b24cd142af041869b463aedd4475ab6139abef0b03d","signature":"7fe23a854adfc06346a96986e5dbb20723bd035b32412cecd0fe835568b224cd"},{"version":"5d380b2911511138a82eeb68ee59060c70637e266118eb8f7a24c01e0b93a108","signature":"c7c8580d7d5c3abdcf400b4b3054bfdd861ddfdbed25e3d807cfe5d92e548cd3"},{"version":"9482fdd3cd3e06f66a4d5df20c6309c98bb54e19b40a5eb615e8abd70df0b0e8","signature":"46b4a8eb9197675c9002635a36836e07b54a71f2f8de96f3192fe64e1a7b05bf"},{"version":"217deef772a86c022a5177954d267a73c63537f5802f2901dfa02d9b5c5df06e","signature":"deda9ba2d0fff599545584ec0275c7f5a8dff221c7c5e5548ca5bdc255c97f47"},{"version":"41ed9a37d85138ada0c02c594a690a9054d9da744fe7eeb94e77be300e74be1a","signature":"154fb094b70176258ffdb406781b22a8acd3f97170df2488f97751e2cab312c1"},{"version":"e8ec8bc137e5be8d5ed47b33387832936af19a3507001e2db290ff8c4ec3074e","signature":"add0a4537c22ad5a6a10cd68e1dc7564faba1fae717a35f63bbbcf60b11ee0e1"},{"version":"d30310836b9a6740fbba57d9a44958ca6d9cd757093352c64c3cc83d0245105e","signature":"939f0db622a7e1a3d8576399a64820defde36ac5d83c8ec5e696898cfa372084"},{"version":"8c3e3c420bcce1f4e56427e6309d8bf79457429a2abd8aa249a68d508eb87549","signature":"a391d62939100af602c15f352c96a0ea57a40cc29d2539c1b285e6916e15d6c9"},{"version":"7ff5bf56634c720e1020fd14688c0e1f2dcf71ad93f9bad21c91b60cce75f06c","signature":"1999b23fbe0cc39698725faa581ed6567b48a692511551b561e2735ea85bafae"},{"version":"6e85db15a0c3807aa6d75472987e793269879de7286ffa56441be972a40d1ef7","signature":"4f3ae880486cbd9310e10837d2ed874b121f9ac2e950d7eedce4f99cb356e224"},{"version":"645dee3a62cb0c82cd6d65a54296d35e9c7531c68014dadae81bcde23ee035d4","signature":"362c32aeee74fc64fb90d44767dc0721948c568f82263dcbc08b0d75014ad17c"},{"version":"b5fe48d3a0c5ad0d3450513886a6d729d8d05038f42d2d75df536c0053421b9f","signature":"c1a97113c805fea2bf68c23d0e70412278fcacdfbb2148b8a80c631e0663bce2"},{"version":"10242942345a9abf41478af06b55e7467603c25d9734543ade5de5e4e06b1d20","signature":"a99fdb0cd02672a7cb74a7c4add2356b55be4a3be1bcf192b947ef9dfad19df6"},{"version":"6a43a0b27a265aa229084d299e332bef6b599a5fc335204536c1ed4724e6714b","signature":"e631a8dcbe6113b753f3e14db05237f29becea9551fe4feee602181633f57075"},{"version":"17da498c6f8a83a29387033930ef4b56719f84e52c311c65c98ae6b1eb9875ef","signature":"833253a2cde84bc8cd302d514ddc88ebb3e3334592d35f7e76a5887c3953ecb1"},"794a28c1671022c939cb28b4632548d7d4763f1d67e2e2d5d997dc841a4af3c0",{"version":"3a4db1b8001e84040e9fab99b79dbccc5adf3faedeaaa5f8900fb5b82e71cafe","signature":"4d9199c102e9c54ff8088905617f1c0979043e802e8dfd69c6d1188c1bd224ac"},{"version":"38fb1bdc8e08eda52f9291e67c30d5e526a3786c37e192f786423090d99a2dad","signature":"d064a5581b5d53ca3e1682d146d6a44d82fd8bd6dbff933f84f9b33b8768ac42"},{"version":"bae374c17de2a936df4fd9e68d55cf14b0eff7301e4306388618f929f5a4825e","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"f41634b0d1cdf790612d1bd223bba91eaca6bdc5a225fd3a0e9a5d69d2260dd1","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"1f4afcf0ff54ea4494f68be70bd0ba58eda7a16830cccc72ac87dfa3262ac94f","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"16618a1f57f886ea2ba581bde464cd074ca11d518b4cc6a3a5902dcf5ec24d3d","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"ff975b363ac892f0508fbd187b765e49ab8c70ca093ee5b19b927b84137d34b7","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"4b093729b0d64f046a98d1b0d79ce9cb361ea8a32a87b86fe475eefabadad101","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"fdfbe321c556c39a2ecf791d537b999591d0849e971dd938d88f460fea0186f6","1db6491f25ced62f23f06d1f3700a790df0971726acb33669bbf4a8de2f769a9",{"version":"eb1513dbf551a45239600b0c9d6be0f49f00071110545963ae5fbe6930cc7f61","signature":"43e818adf60173644896298637f47b01d5819b17eda46eaa32d0c7d64724d012"},{"version":"83251e0cbcb139e6f861efda493a9eab0f0ba617d3aa275bf9558ec2f37ad678","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","561eca7a381b96d6ccac6e4061e6d2ae53f5bc44203f3fd9f5b26864c32ae6e9","62ea38627e3ebab429f7616812a9394d327c2bc271003dfba985de9b4137369f","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"71f30fba971582dc744373cbc8b06c1eb64dc24a6ccbc9b457f94fb68c67cb4e","affectsGlobalScope":true},{"version":"e9a43c3ee6fb8376bb9a4d318a660412c6abcfe5161c106e801e5431b41b7476","affectsGlobalScope":true},"7698983d080f951eaf53ff81e5c7bd61abc02e4a1a21266f1bd79ea85c0dc641","5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1","89a3409a743c2a408d02bd68255a61d8416225b76c2c66d8e2e74dad3e00bc5d","714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef",{"version":"23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096","affectsGlobalScope":true},"0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83","64813a6beff756b9e3f3c06d1b648d55e7c90af2b55c64d13a69d6c7f573643d","5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed","2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317",{"version":"06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70","affectsGlobalScope":true},{"version":"bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb","affectsGlobalScope":true},"a106a0bea088b70879ac88ff606dc253c0cc474ea05ad3a282b8bfb1091ae576","c98ce957db9eebd75f53edda3f6893e05ab2d2283b5667b18e31bcdb6427ed10","1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7","4c260129d649d69f0608cd123e7016e61364b553a5ca2de9b66b0398594959cf","1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba","05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466","8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340","f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657","32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc","0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca","ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f",{"version":"06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e","affectsGlobalScope":true},"a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8","f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3","73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da","8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71","d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25","94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa","2d713cbcbd5bcc38d91546eaeea7bb1c8686dc4a2995a28556d957b1b9de11d9","bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3","0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a","3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837","631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9","2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7","da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14","66679e8ffbf1fddef1796c60757e54e6e6551dd9823f75ef2f80176473bdaaff","ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877","515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977","d44028ae0127eb3e9fcfa5f55a8b81d64775ce15aca1020fe25c511bbb055834",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf","ad1ae5ae98eceb9af99061e83e867b9897d267aebc8f3b938c9424deabadf4bb","19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","9c4c395e927045b324877acdc4bfb95f128f36bc9f073266a2f0342495075a4f"],"root":[47,[50,67],[88,109],[111,118],121,122],"options":{"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"target":6},"fileIdsList":[[82],[82,83,84,85,86],[82,84],[127,129],[123,124],[123,124,125,126],[128],[175],[132],[174,175],[133],[134,142,143,150,159],[134,135,142,150],[166],[137,138,143,151],[138,159],[139,140,142,150],[140],[141,142],[142],[142,143,144,159,165],[143,144],[145,150,159,165],[142,143,145,146,150,159,162,165],[145,147,162,165],[176],[142,148],[149,165],[140,142,150,159],[151],[152],[132,153],[164],[155],[156],[142,157],[157,158,166,168],[142,159],[160],[161],[150,162],[163],[131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170],[171,172,173],[150,164],[156,165],[159,167],[168],[173],[142,144,159,165,168,169],[159,170],[119],[68,69],[68],[69,71],[68,74,75],[68,70,71,72,74,75,76],[71,72,73],[71,74,76],[71],[71,74],[68,70],[48],[78],[77,78,79,80],[45],[94],[45,94],[45,47,108,143,152],[45,47,111,120,143,152],[47,111],[45,47,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,89,90,91,92,109,143,152],[45,47,94],[45,47],[45,47,93,108,109,110,152],[45,46],[45,46,47,93,108,152],[94,108],[45,46,47,94,95,96,97,98,99,100,101,102,103,104,105,106,107,143,152],[45,47,81,88,93,143,152],[47,81,87],[47],[47,70,81]],"referencedMap":[[84,1],[87,2],[83,1],[85,3],[86,1],[130,4],[125,5],[127,6],[126,5],[129,7],[175,8],[132,9],[176,10],[133,11],[134,12],[135,13],[136,14],[137,15],[138,16],[139,17],[140,18],[141,19],[142,20],[143,21],[144,22],[145,23],[146,24],[147,25],[177,26],[148,27],[149,28],[150,29],[151,30],[152,31],[153,32],[154,33],[155,34],[156,35],[157,36],[158,37],[159,38],[160,39],[161,40],[162,41],[163,42],[171,43],[174,44],[164,45],[165,46],[166,14],[167,47],[168,48],[173,49],[169,50],[170,51],[120,52],[70,53],[69,54],[68,55],[76,56],[77,57],[74,58],[75,59],[72,60],[73,61],[71,62],[49,63],[79,64],[81,65],[46,66],[114,67],[115,67],[116,67],[117,67],[118,67],[113,68],[109,69],[121,70],[112,71],[93,72],[61,73],[58,73],[50,73],[59,73],[51,73],[64,73],[65,74],[91,74],[60,74],[57,74],[63,74],[67,74],[62,74],[53,73],[52,73],[54,73],[55,73],[66,74],[56,73],[111,75],[47,76],[94,77],[122,78],[108,79],[95,73],[99,73],[106,73],[105,74],[102,73],[104,73],[98,73],[103,74],[101,73],[96,73],[97,73],[107,73],[100,73],[92,80],[88,81],[89,80],[90,80]],"exportedModulesMap":[[84,1],[87,2],[83,1],[85,3],[86,1],[130,4],[125,5],[127,6],[126,5],[129,7],[175,8],[132,9],[176,10],[133,11],[134,12],[135,13],[136,14],[137,15],[138,16],[139,17],[140,18],[141,19],[142,20],[143,21],[144,22],[145,23],[146,24],[147,25],[177,26],[148,27],[149,28],[150,29],[151,30],[152,31],[153,32],[154,33],[155,34],[156,35],[157,36],[158,37],[159,38],[160,39],[161,40],[162,41],[163,42],[171,43],[174,44],[164,45],[165,46],[166,14],[167,47],[168,48],[173,49],[169,50],[170,51],[120,52],[70,53],[69,54],[68,55],[76,56],[77,57],[74,58],[75,59],[72,60],[73,61],[71,62],[49,63],[79,64],[81,65],[46,66],[109,74],[112,71],[93,74],[61,74],[58,74],[50,74],[59,74],[51,74],[64,74],[65,74],[91,74],[60,74],[57,74],[63,74],[67,74],[62,74],[53,74],[52,74],[54,74],[55,74],[66,74],[56,74],[111,82],[47,76],[94,74],[108,74],[95,74],[99,74],[106,74],[105,74],[102,74],[104,74],[98,74],[103,74],[101,74],[96,74],[97,74],[107,74],[100,74],[92,74],[88,83],[89,74],[90,74]],"semanticDiagnosticsPerFile":[84,82,87,83,85,86,130,123,125,127,126,124,129,128,175,132,176,133,134,135,136,137,138,139,140,141,142,143,144,131,172,145,146,147,177,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,171,174,164,165,166,167,168,173,169,170,119,120,70,69,68,76,77,74,75,72,73,71,48,49,78,79,80,81,46,42,43,9,7,8,13,12,2,14,15,16,17,18,19,20,21,3,22,4,23,27,24,25,26,28,29,30,5,31,32,33,34,6,44,38,35,36,37,39,40,1,41,11,10,45,110,114,115,116,117,118,113,109,121,112,93,61,58,50,59,51,64,65,91,60,57,63,67,62,53,52,54,55,66,56,111,47,94,122,108,95,99,106,105,102,104,98,103,101,96,97,107,100,92,88,89,90]},"version":"5.4.5"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kea-typegen",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Generate type definitions for kea logic",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "ts-node ./src/cli/typegen.ts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build": "tsc -p .",
|
|
9
9
|
"prepublishOnly": "npm run test && npm run clean && npm run build",
|
|
10
10
|
"run-built-cli": "node dist/src/cli/typegen.js",
|
|
11
|
-
"test": "jest",
|
|
11
|
+
"test": "node --experimental-vm-modules node_modules/.bin/jest",
|
|
12
12
|
"samples:check": "ts-node ./src/cli/typegen.ts check -r ./samples",
|
|
13
13
|
"samples:write": "ts-node ./src/cli/typegen.ts write -r ./samples --write-paths --delete",
|
|
14
14
|
"samples:convert": "ts-node ./src/cli/typegen.ts write -r ./samples --convert-to-builders",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@babel/preset-env": "^7.22.10",
|
|
29
29
|
"@babel/preset-typescript": "^7.22.5",
|
|
30
30
|
"ts-clone-node": "^3.0.0",
|
|
31
|
-
"prettier": "^
|
|
31
|
+
"prettier": "^3.6.2",
|
|
32
32
|
"recast": "^0.23.4",
|
|
33
33
|
"yargs": "^16.2.0"
|
|
34
34
|
},
|
package/src/cli/typegen.ts
CHANGED
|
@@ -8,30 +8,15 @@ import { AppOptions } from '../types'
|
|
|
8
8
|
import { runTypeGen } from '../typegen'
|
|
9
9
|
|
|
10
10
|
yargs
|
|
11
|
-
.command(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
(argv)
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'write',
|
|
21
|
-
'- write logicType.ts files',
|
|
22
|
-
(yargs) => {},
|
|
23
|
-
(argv) => {
|
|
24
|
-
runTypeGen({ ...includeKeaConfig(parsedToAppOptions(argv)), write: true, watch: false })
|
|
25
|
-
},
|
|
26
|
-
)
|
|
27
|
-
.command(
|
|
28
|
-
'watch',
|
|
29
|
-
'- watch for changes and write logicType.ts files',
|
|
30
|
-
(yargs) => {},
|
|
31
|
-
(argv) => {
|
|
32
|
-
runTypeGen({ ...includeKeaConfig(parsedToAppOptions(argv)), write: true, watch: true })
|
|
33
|
-
},
|
|
34
|
-
)
|
|
11
|
+
.command('check', '- check what should be done', {}, async (argv) => {
|
|
12
|
+
await runTypeGen({ ...includeKeaConfig(parsedToAppOptions(argv)), write: false, watch: false })
|
|
13
|
+
})
|
|
14
|
+
.command('write', '- write logicType.ts files', {}, async (argv) => {
|
|
15
|
+
await runTypeGen({ ...includeKeaConfig(parsedToAppOptions(argv)), write: true, watch: false })
|
|
16
|
+
})
|
|
17
|
+
.command('watch', '- watch for changes and write logicType.ts files', {}, async (argv) => {
|
|
18
|
+
await runTypeGen({ ...includeKeaConfig(parsedToAppOptions(argv)), write: true, watch: true })
|
|
19
|
+
})
|
|
35
20
|
.option('config', { alias: 'c', describe: 'Path to tsconfig.json (otherwise auto-detected)', type: 'string' })
|
|
36
21
|
.option('file', { alias: 'f', describe: "Single file to evaluate (can't be used with --config)", type: 'string' })
|
|
37
22
|
.option('root', {
|
|
@@ -69,7 +54,8 @@ yargs
|
|
|
69
54
|
.option('verbose', { describe: 'Slightly more verbose output log', type: 'boolean' })
|
|
70
55
|
.demandCommand()
|
|
71
56
|
.help()
|
|
72
|
-
.wrap(80)
|
|
57
|
+
.wrap(80)
|
|
58
|
+
.parse()
|
|
73
59
|
|
|
74
60
|
function parsedToAppOptions(parsedOptions) {
|
|
75
61
|
const { root, types, config, file, ...rest } = parsedOptions
|
|
@@ -110,13 +96,13 @@ function includeKeaConfig(appOptions: AppOptions): AppOptions {
|
|
|
110
96
|
const configDirPath = path.dirname(configFilePath)
|
|
111
97
|
try {
|
|
112
98
|
rawData = fs.readFileSync(configFilePath)
|
|
113
|
-
} catch
|
|
99
|
+
} catch {
|
|
114
100
|
console.error(`Error reading Kea config file: ${configFilePath}`)
|
|
115
101
|
process.exit(1)
|
|
116
102
|
}
|
|
117
103
|
try {
|
|
118
104
|
keaConfig = JSON.parse(rawData)
|
|
119
|
-
} catch
|
|
105
|
+
} catch {
|
|
120
106
|
console.error(`Error parsing Kea config JSON: ${configFilePath}`)
|
|
121
107
|
process.exit(1)
|
|
122
108
|
}
|
package/src/print/print.ts
CHANGED
|
@@ -40,11 +40,11 @@ import { printInternalExtraInput } from './printInternalExtraInput'
|
|
|
40
40
|
import { convertToBuilders } from '../write/convertToBuilders'
|
|
41
41
|
import { cacheWrittenFile } from '../cache'
|
|
42
42
|
|
|
43
|
-
export function runThroughPrettier(sourceText: string, filePath: string): string {
|
|
44
|
-
const options = prettier.resolveConfig
|
|
43
|
+
export async function runThroughPrettier(sourceText: string, filePath: string): Promise<string> {
|
|
44
|
+
const options = await prettier.resolveConfig(filePath)
|
|
45
45
|
if (options) {
|
|
46
46
|
try {
|
|
47
|
-
return prettier.format(sourceText, { ...options, filepath: filePath })
|
|
47
|
+
return await prettier.format(sourceText, { ...options, filepath: filePath })
|
|
48
48
|
} catch (e) {
|
|
49
49
|
console.error(`!! Prettier: Error formatting "${filePath}"`)
|
|
50
50
|
console.error(e.message)
|
|
@@ -56,11 +56,11 @@ export function runThroughPrettier(sourceText: string, filePath: string): string
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
// returns files to write
|
|
59
|
-
export function printToFiles(
|
|
59
|
+
export async function printToFiles(
|
|
60
60
|
program: Program,
|
|
61
61
|
appOptions: AppOptions,
|
|
62
62
|
parsedLogics: ParsedLogic[],
|
|
63
|
-
): { filesToWrite: number; writtenFiles: number; filesToModify: number } {
|
|
63
|
+
): Promise<{ filesToWrite: number; writtenFiles: number; filesToModify: number }> {
|
|
64
64
|
const { log } = appOptions
|
|
65
65
|
|
|
66
66
|
const groupedByFile: Record<string, ParsedLogic[]> = {}
|
|
@@ -101,13 +101,16 @@ export function printToFiles(
|
|
|
101
101
|
let filesToWrite = 0
|
|
102
102
|
let filesToModify = 0
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
for (const [fileName, parsedLogics] of Object.entries(groupedByFile)) {
|
|
105
105
|
const typeFileName = parsedLogics[0].typeFileName
|
|
106
106
|
|
|
107
107
|
const logicStrings = []
|
|
108
108
|
const requiredKeys = new Set(['Logic'])
|
|
109
109
|
for (const parsedLogic of parsedLogics) {
|
|
110
|
-
const logicTypeStirng = runThroughPrettier(
|
|
110
|
+
const logicTypeStirng = await runThroughPrettier(
|
|
111
|
+
nodeToString(parsedLogic.interfaceDeclaration),
|
|
112
|
+
typeFileName,
|
|
113
|
+
)
|
|
111
114
|
logicStrings.push(logicTypeStirng)
|
|
112
115
|
for (const string of parsedLogic.importFromKeaInLogicType.values()) {
|
|
113
116
|
requiredKeys.add(string)
|
|
@@ -232,7 +235,7 @@ export function printToFiles(
|
|
|
232
235
|
const logicsNeedingImports = parsedLogics.filter(parsedLogicNeedsTypeImport)
|
|
233
236
|
if (logicsNeedingImports.length > 0) {
|
|
234
237
|
if (appOptions.write && !appOptions.noImport) {
|
|
235
|
-
writeTypeImports(appOptions, program, fileName, logicsNeedingImports, parsedLogics)
|
|
238
|
+
await writeTypeImports(appOptions, program, fileName, logicsNeedingImports, parsedLogics)
|
|
236
239
|
filesToModify += logicsNeedingImports.length
|
|
237
240
|
} else {
|
|
238
241
|
log(
|
|
@@ -276,7 +279,7 @@ export function printToFiles(
|
|
|
276
279
|
)
|
|
277
280
|
}
|
|
278
281
|
}
|
|
279
|
-
}
|
|
282
|
+
}
|
|
280
283
|
|
|
281
284
|
if (writtenFiles === 0 && filesToModify === 0) {
|
|
282
285
|
if (appOptions.write) {
|
package/src/typegen.ts
CHANGED
|
@@ -16,7 +16,7 @@ if (parseInt(ts.versionMajorMinor.split('.')[0]) < 5) {
|
|
|
16
16
|
;(ts as any).defaultMaximumTruncationLength = Infinity
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
export function runTypeGen(appOptions: AppOptions) {
|
|
19
|
+
export async function runTypeGen(appOptions: AppOptions) {
|
|
20
20
|
let program: Program
|
|
21
21
|
let resetProgram: () => void
|
|
22
22
|
|
|
@@ -49,7 +49,7 @@ export function runTypeGen(appOptions: AppOptions) {
|
|
|
49
49
|
compilerOptions.options,
|
|
50
50
|
{
|
|
51
51
|
...ts.sys,
|
|
52
|
-
writeFile(
|
|
52
|
+
writeFile(_path: string, _data: string, _writeByteOrderMark?: boolean) {
|
|
53
53
|
// skip emit
|
|
54
54
|
// https://github.com/microsoft/TypeScript/issues/32385
|
|
55
55
|
// https://github.com/microsoft/TypeScript/issues/36917
|
|
@@ -89,11 +89,11 @@ export function runTypeGen(appOptions: AppOptions) {
|
|
|
89
89
|
}
|
|
90
90
|
const origPostProgramCreate = host.afterProgramCreate
|
|
91
91
|
|
|
92
|
-
host.afterProgramCreate = (prog) => {
|
|
92
|
+
host.afterProgramCreate = async (prog) => {
|
|
93
93
|
program = prog.getProgram()
|
|
94
94
|
origPostProgramCreate!(prog)
|
|
95
95
|
|
|
96
|
-
goThroughAllTheFiles(program, appOptions)
|
|
96
|
+
await goThroughAllTheFiles(program, appOptions)
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
ts.createWatchProgram(host)
|
|
@@ -108,16 +108,16 @@ export function runTypeGen(appOptions: AppOptions) {
|
|
|
108
108
|
log(`⛔ No tsconfig.json found! No source file specified.`)
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
function goThroughAllTheFiles(
|
|
111
|
+
async function goThroughAllTheFiles(
|
|
112
112
|
program,
|
|
113
113
|
appOptions,
|
|
114
|
-
): { filesToWrite: number; writtenFiles: number; filesToModify: number } {
|
|
114
|
+
): Promise<{ filesToWrite: number; writtenFiles: number; filesToModify: number }> {
|
|
115
115
|
const parsedLogics = visitProgram(program, appOptions)
|
|
116
116
|
if (appOptions.verbose) {
|
|
117
117
|
log(`🗒️ ${parsedLogics.length} logic${parsedLogics.length === 1 ? '' : 's'} found!`)
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
const response = printToFiles(program, appOptions, parsedLogics)
|
|
120
|
+
const response = await printToFiles(program, appOptions, parsedLogics)
|
|
121
121
|
|
|
122
122
|
// running "kea-typegen check" and would write files?
|
|
123
123
|
// exit with 1
|
|
@@ -136,7 +136,7 @@ export function runTypeGen(appOptions: AppOptions) {
|
|
|
136
136
|
|
|
137
137
|
let round = 0
|
|
138
138
|
while ((round += 1)) {
|
|
139
|
-
const { writtenFiles, filesToModify } = goThroughAllTheFiles(program, appOptions)
|
|
139
|
+
const { writtenFiles, filesToModify } = await goThroughAllTheFiles(program, appOptions)
|
|
140
140
|
|
|
141
141
|
if (writtenFiles === 0 && filesToModify === 0) {
|
|
142
142
|
log(`👋 Finished writing files! Exiting.`)
|
|
@@ -4,7 +4,7 @@ import { print, visit } from 'recast'
|
|
|
4
4
|
import { runThroughPrettier } from '../print/print'
|
|
5
5
|
import * as fs from 'fs'
|
|
6
6
|
import * as osPath from 'path'
|
|
7
|
-
import { t, b, visitAllKeaCalls, assureImport, getAst } from
|
|
7
|
+
import { t, b, visitAllKeaCalls, assureImport, getAst } from './utils'
|
|
8
8
|
|
|
9
9
|
const supportedProperties = {
|
|
10
10
|
props: 'kea',
|
|
@@ -33,7 +33,7 @@ const supportedProperties = {
|
|
|
33
33
|
events: 'kea',
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export function convertToBuilders(
|
|
36
|
+
export async function convertToBuilders(
|
|
37
37
|
appOptions: AppOptions,
|
|
38
38
|
program: ts.Program,
|
|
39
39
|
filename: string,
|
|
@@ -120,7 +120,7 @@ export function convertToBuilders(
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
const newText = runThroughPrettier(print(ast).code, filename)
|
|
123
|
+
const newText = await runThroughPrettier(print(ast).code, filename)
|
|
124
124
|
fs.writeFileSync(filename, newText)
|
|
125
125
|
|
|
126
126
|
log(`🔥 Converted to builders: ${osPath.relative(process.cwd(), filename)}`)
|
package/src/write/writePaths.ts
CHANGED
|
@@ -4,9 +4,14 @@ import { print, visit } from 'recast'
|
|
|
4
4
|
import { runThroughPrettier } from '../print/print'
|
|
5
5
|
import * as fs from 'fs'
|
|
6
6
|
import * as osPath from 'path'
|
|
7
|
-
import { t, b, visitAllKeaCalls, assureImport, getAst } from
|
|
7
|
+
import { t, b, visitAllKeaCalls, assureImport, getAst } from './utils'
|
|
8
8
|
|
|
9
|
-
export function writePaths(
|
|
9
|
+
export async function writePaths(
|
|
10
|
+
appOptions: AppOptions,
|
|
11
|
+
program: ts.Program,
|
|
12
|
+
filename: string,
|
|
13
|
+
parsedLogics: ParsedLogic[],
|
|
14
|
+
) {
|
|
10
15
|
const { log } = appOptions
|
|
11
16
|
const sourceFile = program.getSourceFile(filename)
|
|
12
17
|
const rawCode = sourceFile.getText()
|
|
@@ -52,7 +57,7 @@ export function writePaths(appOptions: AppOptions, program: ts.Program, filename
|
|
|
52
57
|
visitAllKeaCalls(ast, parsedLogics, filename, ({ path, parsedLogic }) => {
|
|
53
58
|
const stmt = path.node
|
|
54
59
|
const arg = stmt.arguments[0]
|
|
55
|
-
const logicPath = parsedLogic.path.filter(p => p !== '..')
|
|
60
|
+
const logicPath = parsedLogic.path.filter((p) => p !== '..')
|
|
56
61
|
|
|
57
62
|
if (t.ObjectExpression.check(arg)) {
|
|
58
63
|
const pathProperty = arg.properties.find(
|
|
@@ -80,7 +85,7 @@ export function writePaths(appOptions: AppOptions, program: ts.Program, filename
|
|
|
80
85
|
}
|
|
81
86
|
})
|
|
82
87
|
|
|
83
|
-
const newText = runThroughPrettier(print(ast).code, filename)
|
|
88
|
+
const newText = await runThroughPrettier(print(ast).code, filename)
|
|
84
89
|
fs.writeFileSync(filename, newText)
|
|
85
90
|
|
|
86
91
|
log(`🔥 Path added: ${osPath.relative(process.cwd(), filename)}`)
|
|
@@ -6,7 +6,7 @@ import { runThroughPrettier } from '../print/print'
|
|
|
6
6
|
import * as fs from 'fs'
|
|
7
7
|
import { t, b, visitAllKeaCalls, getAst } from './utils'
|
|
8
8
|
|
|
9
|
-
export function writeTypeImports(
|
|
9
|
+
export async function writeTypeImports(
|
|
10
10
|
appOptions: AppOptions,
|
|
11
11
|
program: ts.Program,
|
|
12
12
|
filename: string,
|
|
@@ -75,7 +75,7 @@ export function writeTypeImports(
|
|
|
75
75
|
])
|
|
76
76
|
})
|
|
77
77
|
|
|
78
|
-
const newText = runThroughPrettier(print(ast).code, filename)
|
|
78
|
+
const newText = await runThroughPrettier(print(ast).code, filename)
|
|
79
79
|
fs.writeFileSync(filename, newText)
|
|
80
80
|
|
|
81
81
|
log(`🔥 Import added: ${osPath.relative(process.cwd(), filename)}`)
|