kea-typegen 1.4.0 → 1.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,16 @@
1
+ ## 1.4.3 - 2022-03-18
2
+
3
+ - Internal: plugins can specify which types they want to import from 'kea'
4
+
5
+ ## 1.4.2 - 2021-12-13
6
+
7
+ - Fix bug introduced with 1.4.1 if your `tsconfig.json` file does not contain a `types` array.
8
+
9
+ ## 1.4.1 - 2021-12-12
10
+
11
+ - 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.
12
+ - 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.
13
+
1
14
  ## 1.4.0 - 2021-12-12
2
15
 
3
16
  - Support TypeScript 4.5+.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kea-typegen",
3
- "version": "1.4.0",
3
+ "version": "1.4.3",
4
4
  "description": "Generate type definitions for kea logic",
5
5
  "scripts": {
6
6
  "start": "ts-node ./src/cli/typegen.ts",
@@ -9,10 +9,10 @@
9
9
  "prepublishOnly": "npm run test && npm run clean && npm run build",
10
10
  "run-built-cli": "node dist/src/cli/typegen.js",
11
11
  "test": "jest",
12
- "samples:check": "ts-node ./src/cli/typegen.ts check -c ./samples/tsconfig.json",
13
- "samples:write": "ts-node ./src/cli/typegen.ts write -c ./samples/tsconfig.json",
14
- "samples:write:paths": "ts-node ./src/cli/typegen.ts write -c ./samples/tsconfig.json --write-paths",
15
- "samples:watch": "ts-node ./src/cli/typegen.ts watch -c ./samples/tsconfig.json",
12
+ "samples:check": "ts-node ./src/cli/typegen.ts check -r ./samples",
13
+ "samples:write": "ts-node ./src/cli/typegen.ts write -r ./samples --write-paths",
14
+ "samples:write:paths": "ts-node ./src/cli/typegen.ts write -r ./samples --write-paths",
15
+ "samples:watch": "ts-node ./src/cli/typegen.ts watch -r ./samples",
16
16
  "samples:write:posthog": "ts-node ./src/cli/typegen.ts write -c ../../PostHog/posthog/tsconfig.json",
17
17
  "form-plugin:build": "cd form-plugin && yarn && yarn build && cd ..",
18
18
  "form-plugin:rebuild": "yarn form-plugin:build && rm -rf node_modules && yarn"
@@ -31,6 +31,14 @@ yargs
31
31
  .option('quiet', { alias: 'q', describe: 'Write nothing to stdout', type: 'boolean' })
32
32
  .option('no-import', { describe: 'Do not automatically import generated types in logic files', type: 'boolean' })
33
33
  .option('write-paths', { describe: 'Write paths into logic files that have none', type: 'boolean' })
34
+ .option('import-global-types', {
35
+ describe: 'Add import statements in logicType.ts files for global types (e.g. @types/node)',
36
+ type: 'boolean',
37
+ })
38
+ .option('ignore-import-paths', {
39
+ describe: 'List of paths we will never import from inside logicType.ts files',
40
+ type: 'array',
41
+ })
34
42
  .option('verbose', { describe: 'Slightly more verbose output log', type: 'boolean' })
35
43
  .demandCommand()
36
44
  .help()
@@ -45,15 +53,17 @@ function parsedToAppOptions(parsedOptions) {
45
53
  verbose: parsedOptions.verbose,
46
54
  noImport: parsedOptions.noImport,
47
55
  writePaths: parsedOptions.writePaths,
56
+ importGlobalTypes: parsedOptions.importGlobalTypes,
57
+ ignoreImportPaths: parsedOptions.ignoreImportPaths,
48
58
  log: parsedOptions.quiet ? () => null : console.log.bind(console),
49
59
  };
50
60
  return appOptions;
51
61
  }
52
- function findKeaConfig() {
53
- return ts.findConfigFile('./', ts.sys.fileExists, '.kearc');
62
+ function findKeaConfig(searchPath) {
63
+ return ts.findConfigFile(searchPath, ts.sys.fileExists, '.kearc');
54
64
  }
55
65
  function includeKeaConfig(appOptions) {
56
- const configFilePath = findKeaConfig();
66
+ const configFilePath = findKeaConfig(appOptions.rootPath);
57
67
  const newOptions = Object.assign({}, appOptions);
58
68
  let rawData, keaConfig;
59
69
  for (const key of Object.keys(appOptions)) {
@@ -83,20 +93,34 @@ function includeKeaConfig(appOptions) {
83
93
  if (key.endsWith('Path')) {
84
94
  newOptions[key] = path.resolve(process.cwd(), configDirPath, keaConfig[key]);
85
95
  }
96
+ else if (key.endsWith('Paths') && key !== 'writePaths') {
97
+ if (!Array.isArray(keaConfig[key])) {
98
+ console.error(`Config "${key}" in ".kearc" is not an array`);
99
+ process.exit(1);
100
+ }
101
+ newOptions[key] = keaConfig[key].map((value) => path.resolve(process.cwd(), configDirPath, value));
102
+ }
86
103
  else {
87
104
  newOptions[key] = keaConfig[key];
88
105
  }
89
106
  });
90
107
  }
91
- if (!newOptions.tsConfigPath) {
92
- newOptions.tsConfigPath = ts.findConfigFile('./', ts.sys.fileExists, 'tsconfig.json');
93
- }
94
108
  if (!newOptions.rootPath) {
95
109
  newOptions.rootPath = newOptions.tsConfigPath ? path.dirname(newOptions.tsConfigPath) : process.cwd();
96
110
  }
97
111
  if (!newOptions.typesPath) {
98
112
  newOptions.typesPath = newOptions.rootPath;
99
113
  }
114
+ if (!newOptions.tsConfigPath) {
115
+ newOptions.tsConfigPath =
116
+ ts.findConfigFile(newOptions.rootPath, ts.sys.fileExists, 'tsconfig.json') ||
117
+ ts.findConfigFile('./', ts.sys.fileExists, 'tsconfig.json');
118
+ }
119
+ if (!newOptions.packageJsonPath) {
120
+ newOptions.packageJsonPath =
121
+ ts.findConfigFile(newOptions.rootPath, ts.sys.fileExists, 'package.json') ||
122
+ ts.findConfigFile('./', ts.sys.fileExists, 'package.json');
123
+ }
100
124
  return newOptions;
101
125
  }
102
126
  //# sourceMappingURL=typegen.js.map
@@ -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,CACJ,OAAO,EACP,6BAA6B,EAC7B,CAAC,KAAK,EAAE,EAAE,G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Ac,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;KACjE;IAED,OAAO,UAAU,CAAA;AACrB,CAAC"}
@@ -53,6 +53,12 @@ function printToFiles(program, appOptions, parsedLogics) {
53
53
  groupedByFile[parsedLogic.fileName].push(parsedLogic);
54
54
  printLogicType(parsedLogic, appOptions);
55
55
  }
56
+ const defaultGlobalTypePaths = appOptions.importGlobalTypes
57
+ ? []
58
+ : (program.getCompilerOptions().types || []).map((type) => path.join(appOptions.packageJsonPath ? path.dirname(appOptions.packageJsonPath) : appOptions.rootPath, 'node_modules', '@types', type) + path.sep);
59
+ const ignoredImportPaths = (appOptions.ignoreImportPaths || []).map((importPath) => path.resolve(appOptions.rootPath, importPath));
60
+ const doNotImportFromPaths = [...defaultGlobalTypePaths, ...ignoredImportPaths];
61
+ const shouldIgnore = (absolutePath) => !!doNotImportFromPaths.find((badPath) => absolutePath.startsWith(badPath));
56
62
  let writtenFiles = 0;
57
63
  let filesToWrite = 0;
58
64
  let filesToModify = 0;
@@ -60,15 +66,18 @@ function printToFiles(program, appOptions, parsedLogics) {
60
66
  var _a;
61
67
  const typeFileName = parsedLogics[0].typeFileName;
62
68
  const logicStrings = [];
69
+ const requiredKeys = new Set(['Logic']);
63
70
  for (const parsedLogic of parsedLogics) {
64
71
  const logicTypeStirng = runThroughPrettier(nodeToString(parsedLogic.interfaceDeclaration), typeFileName);
65
72
  logicStrings.push(logicTypeStirng);
73
+ for (const string of parsedLogic.importFromKeaInLogicType.values()) {
74
+ requiredKeys.add(string);
75
+ }
76
+ if (parsedLogic.sharedListeners.length > 0) {
77
+ requiredKeys.add('BreakPointFunction');
78
+ }
66
79
  }
67
80
  const output = logicStrings.join('\n\n');
68
- const requiredKeys = ['Logic'];
69
- if (parsedLogics.find((l) => l.sharedListeners.length > 0)) {
70
- requiredKeys.push('BreakPointFunction');
71
- }
72
81
  const otherimports = Object.entries(parsedLogics[0].typeReferencesToImportFromFiles)
73
82
  .filter(([_, list]) => list.size > 0)
74
83
  .map(([file, list]) => {
@@ -77,12 +86,18 @@ function printToFiles(program, appOptions, parsedLogics) {
77
86
  if (!relativePath.startsWith('.')) {
78
87
  relativePath = `./${relativePath}`;
79
88
  }
80
- return `import { ${[...list].sort().join(', ')} } from '${relativePath}'`;
89
+ return {
90
+ list: [...list].sort(),
91
+ fullPath: file,
92
+ relativePath,
93
+ };
81
94
  })
95
+ .filter(({ fullPath }) => !shouldIgnore(fullPath))
96
+ .map(({ list, relativePath }) => `import { ${list.join(', ')} } from '${relativePath}'`)
82
97
  .join('\n');
83
98
  const finalOutput = [
84
99
  `// Generated by kea-typegen on ${new Date().toUTCString()}. DO NOT EDIT THIS FILE MANUALLY.`,
85
- `import { ${requiredKeys.join(', ')} } from 'kea'`,
100
+ `import { ${[...requiredKeys.values()].join(', ')} } from 'kea'`,
86
101
  otherimports,
87
102
  output,
88
103
  ]
@@ -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,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,qDAAiD;AACjD,+DAA2D;AAC3D,+CAA2C;AAC3C,iEAA6D;AAC7D,qDAAiD;AACjD,0CAA6D;AAC7D,uEAAmE;AAEnE,SAAgB,kBAAkB,CAAC,UAAkB,EAAE,QAAgB;IACnE,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa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
  }>;
56
+ importFromKeaInLogicType: Set<string>;
56
57
  }
57
58
  export interface AppOptions {
58
59
  tsConfigPath?: string;
60
+ packageJsonPath?: string;
59
61
  sourceFilePath?: string;
60
62
  rootPath?: string;
61
63
  typesPath?: string;
@@ -64,6 +66,8 @@ export interface AppOptions {
64
66
  quiet?: boolean;
65
67
  verbose?: boolean;
66
68
  noImport?: boolean;
69
+ importGlobalTypes?: boolean;
70
+ ignoreImportPaths?: string[];
67
71
  writePaths?: boolean;
68
72
  log: (message: string) => void;
69
73
  }
package/dist/src/utils.js CHANGED
@@ -171,7 +171,9 @@ function getLogicPathString(appOptions, fileName) {
171
171
  }
172
172
  exports.getLogicPathString = getLogicPathString;
173
173
  function getFilenamesForSymbol(symbol) {
174
- return symbol === null || symbol === void 0 ? void 0 : symbol.declarations.map((d) => d.getSourceFile().fileName).filter((str) => !str.includes('/node_modules/typescript/lib/lib'));
174
+ return ((symbol === null || symbol === void 0 ? void 0 : symbol.declarations) || [])
175
+ .map((d) => d.getSourceFile().fileName)
176
+ .filter((str) => !str.includes('/node_modules/typescript/lib/lib'));
175
177
  }
176
178
  exports.getFilenamesForSymbol = getFilenamesForSymbol;
177
179
  function gatherImports(input, checker, parsedLogic) {
@@ -202,8 +204,9 @@ function gatherImports(input, checker, parsedLogic) {
202
204
  }
203
205
  exports.gatherImports = gatherImports;
204
206
  function storeExtractedSymbol(symbol, checker, parsedLogic, typeRootName) {
205
- const declaration = symbol.getDeclarations()[0];
206
- if (ts.isImportSpecifier(declaration)) {
207
+ var _a;
208
+ const declaration = (_a = symbol.getDeclarations()) === null || _a === void 0 ? void 0 : _a[0];
209
+ if (declaration && ts.isImportSpecifier(declaration)) {
207
210
  const importFilename = getFilenameForImportSpecifier(declaration, checker);
208
211
  if (importFilename) {
209
212
  addTypeImport(parsedLogic, importFilename, typeRootName || declaration.getText());
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":";;;AAA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C,CAAC,CAAA;KACjC;IACD,OAAO,IAAI,CAAA;AACf,CAAC;AALD,kCAKC;AAED,SAAgB,YAAY,CAAC,IAAc;IACvC,IAAI,CAAC,IAAI,EAAE;QACP,OAAO,IAAI,CAAA;KACd;IACD,MAAM,UAAU,GAAG,WAAW,CAAC,IAAI,CAAC,CAAA;IACpC,OAAO,CACH,CAAC,UAAU;QACX,UAAU,CAAC,IAAI,KAAK,uBAAU,CAAC,UAAU;QACzC,UAAU,CAAC,IAAI,KAAK,uBAAU,CAAC,cAAc;QAC7C,CAAC,EAAE,CAAC,iBAAiB,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CACxE,CAAA;AACL,CAAC;AAXD,oCAWC"}
@@ -180,6 +180,7 @@ function visitKeaCalls(checker, parsedLogics, sourceFile, appOptions, pluginModu
180
180
  typeReferencesToImportFromFiles: {},
181
181
  typeReferencesInLogicInput: new Set(),
182
182
  extraInput: {},
183
+ importFromKeaInLogicType: new Set([]),
183
184
  };
184
185
  const input = node.parent.arguments[0];
185
186
  for (const inputProperty of input.properties) {
@@ -1 +1 @@
1
- {"version":3,"file":"visit.js","sourceRoot":"","sources":["../../../src/visit/visit.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAChC,6BAA4B;AAE5B,oCAOiB;AACjB,iDAA6C;AAC7C,mDAA+C;AAC/C,qDAAiD;AACjD,iDAA6C;AAC7C,iDAA6C;AAC7C,2DAAuD;AACvD,6CAAyC;AACzC,yCAAqC;AACrC,2CAAuC;AACvC,qDAAiD;AACjD,qDAAiD;AACjD,+CAA2C;AAC3C,mDAA+C;AAC/C,iEAA6D;AAC7D,2DAAmD;AAEnD,MAAM,cAAc,GAAG;IACnB,OAAO,EAAE,2BAAY;IACrB,OAAO,EAAE,2BAAY;IACrB,SAAS,EAAE,+BAAc;IACzB,QAAQ,EAAE,6BAAa;IACvB,MAAM,EAAE,yBAAW;IACnB,GAAG,EAAE,mBAAQ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tB,IAAA,qBAAa,EAAC,IAAI,EAAE,OAAO,EAAE,WAAW,CAAC,CAAA;oBACzC,OAAO,IAAA,yBAAS,EAAC,IAAI,CAAC,CAAA;gBAC1B,CAAC;aACJ,CAAA;YAED,KAAK,MAAM,YAAY,IAAI,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE;gBACrD,IAAI;oBACA,MAAA,YAAY,CAAC,gBAAgB,+CAA7B,YAAY,EAAoB,yBAAyB,CAAC,CAAA;iBAC7D;gBAAC,OAAO,CAAC,EAAE;oBACR,OAAO,CAAC,KAAK,CACT,oDAAoD,YAAY,CAAC,IAAI,MAAM,YAAY,CAAC,IAAI,GAAG,CAClG,CAAA;oBACD,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;iBACnB;aACJ;SACJ;QAED,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;IAClC,CAAC,CAAA;AACL,CAAC;AAhJD,sCAgJC"}
@@ -1 +1 @@
1
- {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../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.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.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.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.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/typescript.d.ts","../node_modules/@wessberg/ts-clone-node/dist/esm/index.d.ts","../src/types.ts","../node_modules/@types/prettier/index.d.ts","../src/print/printactions.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/printconstants.ts","../src/print/printreduceroptions.ts","../src/print/printevents.ts","../src/print/printsharedlisteners.ts","../src/print/printlisteners.ts","../src/write/write.ts","../src/print/printinternalextrainput.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/visitconstants.ts","../src/visit/visitevents.ts","../src/visit/visitdefaults.ts","../src/visit/visitsharedlisteners.ts","../src/visit/visit.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":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"bbfbfa714a8f9fdf10e9483b4abd82ccb546fc0fc069ad80d0a254fa40930e98","e2dc8b431b672ccec6da32acb17475cc7d5a3ad121667ef5723231b39808ab11","9ad911d63527dec6f84dd6abb24dd2a839fc44d69e1702c8b2471e98bb982837","74940ccce687ffb55f99053deb278496e43ffd51020f6e81a8be80545f6bd7ec","7a79f57af2b26a8f058d23809ba32d2e6982da9e608fc3210e1b262d70d36c03","220ff3a2b9c22b04a1b5ce2a183822123d993ff9ea3fd0e25cec1d93d2782106","8724640451ac6ec8a3a5c799568013b1bbbde0de2c23c9f91a4002625edd97dc","9161cfb265d1f6d2a4e54b53799eb92aad6482d7d06c14787f9433dba9293b45","fdaed54c27c178a95076ef75557da664cf4f9e30aac087f6d32cc903410f0511","cbc41122e6d975ce71a7f3329b7d337a33d68bd79e0773bcabc58850daaf3990","743bd3264dae16734d728b52942e22c7474082156cf08bea042c83fe8e683090","bbba0f78e0b7c4c4b62cf0810fff2b774225ba71c1f6f08ff1fd6928c1fad611","4081e497d4e1be2671976aea943a34daafe4ca285b92550defea3f6c5e6e8965","6012f213231f72f4c06092717fc40f9fa8f514c5e583b27550c3fe1441fb330e","8b0d0aa18240c76425f8ae474926c9fd65a3ac3264111991653aec7eb47c4b30","66da834d094272008b62b0c49fa1d69ce290800ead4fa92d251137444a6f78c7","5c7dafd1da3c737c4f1b95572e5e0de3fa88b6529642f7bb705da39358c52635","26927331a447d6d14dfa26f55bf8ddefe1f5b62ad067ea0b31d1a681596c059d","f28f3eb2d71115db52128384678a5dc47b79715d5f9342836f2402d1aa2ae931","19cce8b70c59e7dfdebf7d6948487625f92da6b619672b2ac6e1b19ef08faca5","76e655dfdf12ba56ef51a07dda9c49fce0cfff9ca749f91fee171b45dc390987","cb54e8c23569192f603de50e37d1effe050832884cfc4ca7b207eaa6eea034c4","9c40547f97a80e178bab74cc17ce02c956b80887e80994222e46fcafbda2fc98","0a7ded7cd1b22ca933eabdf42ae0930a8711e7af4897c875138f08513f5be81a","227e981a1823d7a2da07dda7eeebf42c40ecc0be02d0037a45c5d6d8745ab29a","9639a8c0cb2a2e8c29973d547fae13ddec97605eb9de39225835ca457da9112e","b4ac2ffe9e8c77179c8b448faf6e29f055170bae8612dbe1a9419b336888bb96","4f445802f33c5c8ba9a127cdb0778a02d80bc637d7efbd45117adc797bf2cdaf","c00cad497f8c18d79b7cb0f6d3d7462a922384ba0323c9e8e50123972bfc4904","fc551230261683f58d78b99380b2eb62525f112902d131341df89606d5a423e2","fe6f012dc4d0509553156b7957aab646703f8138a35d3878508a3ce1cc9d1d71","af9d1a6c0f14931bf1a050bc12deb052b24b4a1c2680366734fec9b5ff431850","7eac38bc715b44db042e3d3fe8dd1d550d6bb3b15b5d715cb7586d7e6c53c3e7","575583a244d92d5438d054aa4fd14c2e6added5314873f789abc52ce7bb50397","a5b6d895f1477958701942aa740640e2194f306331b71235b4ddec190a3f7448","0ea0720994ba3c0658f98bf4956b5471d3f38d0c2f90e2a14c5c4e08578a5fb1","cb9655096780d2427842e49f021a1b979dfd0bb83a7d1051a8449879a36f38c7","e6337d77773d763c79a1e8ba90ed6dccbd8b3b0736c78f87076a2d98d32979f4","21ed8d6fa955375cf35f391bc11eda531012e179337fcf3db52a3676cd56cb8b","9d64a0bc2440331a0dcb2d763a298fe42e2cfdf4f1bfc02436e10c373d457ca6","98b183f3a887f6ea832c3628ac263a71a905c47723e9cc699e70e4d481698f12","fe50f8ace18c44643451d07066358923093592a2f303dc12b3e99bc78854a144","41c7fc5f3a90df762ac0819c02804243c786bcb1c96b39401c3925680cc9a29e","88d15604d39aacd3315e2c6467f2787eab52f6073404e8fa920eb21c061797a1","4329bab0bad8f11adbb7e69f68e7540130331907b257c6584192775ac5fcba19","bae374c17de2a936df4fd9e68d55cf14b0eff7301e4306388618f929f5a4825e","a425af7d90db91e6b2851ef4649a24fa6f5881411e9388d4410b1a6e3fde2e7f","3d6c1f1cf2cf416ca87cac68585d3c358a0ba406e14873edcb707a6b4be6dec8","0560d3dd801f1b496258932510f77a2df19c0e04812aa52e26b8ac14bd5ed2ac","ff975b363ac892f0508fbd187b765e49ab8c70ca093ee5b19b927b84137d34b7","4b093729b0d64f046a98d1b0d79ce9cb361ea8a32a87b86fe475eefabadad101","fdfbe321c556c39a2ecf791d537b999591d0849e971dd938d88f460fea0186f6","1db6491f25ced62f23f06d1f3700a790df0971726acb33669bbf4a8de2f769a9","a3e8b5af30fbc93c48f3d738ec4a855b621054286a16b86ca63a7edecfb83dc3","83251e0cbcb139e6f861efda493a9eab0f0ba617d3aa275bf9558ec2f37ad678","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"],"options":{"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"target":2},"fileIdsList":[[92,94],[88,89],[88,89,90,91],[93],[140],[97],[139,140],[98],[99,107,108,115,124],[99,100,107,115],[131],[102,103,108,116],[103,124],[104,105,107,115],[105],[106,107],[107],[107,108,109,124,130],[108,109],[110,115,124,130],[107,108,110,111,115,124,127,130],[110,112,127,130],[141],[107,113],[114,130],[105,107,115,124],[116],[117],[97,118],[129],[120],[121],[107,122],[122,123,131,133],[107,124],[125],[126],[115,127],[128],[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135],[136,137,138],[115,129],[121,130],[124,132],[133],[138],[107,109,124,130,133,134],[124,135],[84],[33],[59],[33,59],[33,35,76,85,108,117],[35,76],[33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,108,117],[33,35,59],[33,35],[33,35,58,74,75,117],[33,34],[33,34,35,58,74,117],[59,74],[33,34,35,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,117],[33,34,35,59],[33,35,58,59,108,117]],"referencedMap":[[95,1],[90,2],[92,3],[91,2],[94,4],[140,5],[97,6],[141,7],[98,8],[99,9],[100,10],[101,11],[102,12],[103,13],[104,14],[105,15],[106,16],[107,17],[108,18],[109,19],[110,20],[111,21],[112,22],[142,23],[113,24],[114,25],[115,26],[116,27],[117,28],[118,29],[119,30],[120,31],[121,32],[122,33],[123,34],[124,35],[125,36],[126,37],[127,38],[128,39],[136,40],[139,41],[129,42],[130,43],[131,11],[132,44],[133,45],[138,46],[134,47],[135,48],[85,49],[34,50],[79,51],[80,51],[81,51],[82,51],[83,51],[78,52],[86,53],[77,54],[58,55],[47,56],[44,56],[37,56],[45,56],[51,57],[50,56],[53,57],[57,57],[46,57],[43,57],[49,57],[55,57],[48,57],[39,56],[52,56],[38,56],[40,56],[41,56],[54,57],[42,56],[76,58],[35,59],[59,60],[87,61],[74,62],[60,63],[64,63],[70,57],[72,56],[71,57],[67,63],[69,56],[63,56],[68,57],[66,56],[61,63],[62,63],[73,63],[65,56],[56,64]],"exportedModulesMap":[[95,1],[90,2],[92,3],[91,2],[94,4],[140,5],[97,6],[141,7],[98,8],[99,9],[100,10],[101,11],[102,12],[103,13],[104,14],[105,15],[106,16],[107,17],[108,18],[109,19],[110,20],[111,21],[112,22],[142,23],[113,24],[114,25],[115,26],[116,27],[117,28],[118,29],[119,30],[120,31],[121,32],[122,33],[123,34],[124,35],[125,36],[126,37],[127,38],[128,39],[136,40],[139,41],[129,42],[130,43],[131,11],[132,44],[133,45],[138,46],[134,47],[135,48],[85,49],[34,50],[79,51],[80,51],[81,51],[82,51],[83,51],[78,52],[86,53],[77,54],[58,55],[47,56],[44,56],[37,56],[45,56],[51,57],[50,56],[53,57],[57,57],[46,57],[43,57],[49,57],[55,57],[48,57],[39,56],[52,56],[38,56],[40,56],[41,56],[54,57],[42,56],[76,58],[35,59],[59,60],[87,61],[74,62],[60,63],[64,63],[70,57],[72,56],[71,57],[67,63],[69,56],[63,56],[68,57],[66,56],[61,63],[62,63],[73,63],[65,56],[56,64]],"semanticDiagnosticsPerFile":[95,88,90,92,91,89,94,93,140,97,141,98,99,100,101,102,103,104,105,106,107,108,109,96,137,110,111,112,142,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,136,139,129,130,131,132,133,138,134,135,36,84,85,34,7,8,12,11,3,13,14,15,16,17,18,19,20,4,5,24,21,22,23,25,26,27,6,28,29,30,31,2,1,32,10,9,33,75,79,80,81,82,83,78,86,77,58,47,44,37,45,51,50,53,57,46,43,49,55,48,39,52,38,40,41,54,42,76,35,59,87,74,60,64,70,72,71,67,69,63,68,66,61,62,73,65,56]},"version":"4.5.3"}
1
+ {"program":{"fileNames":["../node_modules/typescript/lib/lib.es6.d.ts","../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.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.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.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.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/typescript.d.ts","../node_modules/@wessberg/ts-clone-node/dist/esm/index.d.ts","../src/types.ts","../node_modules/@types/prettier/index.d.ts","../src/print/printactions.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/printconstants.ts","../src/print/printreduceroptions.ts","../src/print/printevents.ts","../src/print/printsharedlisteners.ts","../src/print/printlisteners.ts","../src/write/write.ts","../src/print/printinternalextrainput.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/visitconstants.ts","../src/visit/visitevents.ts","../src/visit/visitdefaults.ts","../src/visit/visitsharedlisteners.ts","../src/visit/visit.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":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"bbfbfa714a8f9fdf10e9483b4abd82ccb546fc0fc069ad80d0a254fa40930e98","e2dc8b431b672ccec6da32acb17475cc7d5a3ad121667ef5723231b39808ab11","b6ed209185308d71915dcd5fc6eee3fc22222b7899acf24695c47f7b0286a349","74940ccce687ffb55f99053deb278496e43ffd51020f6e81a8be80545f6bd7ec","7a79f57af2b26a8f058d23809ba32d2e6982da9e608fc3210e1b262d70d36c03","220ff3a2b9c22b04a1b5ce2a183822123d993ff9ea3fd0e25cec1d93d2782106","8724640451ac6ec8a3a5c799568013b1bbbde0de2c23c9f91a4002625edd97dc","9161cfb265d1f6d2a4e54b53799eb92aad6482d7d06c14787f9433dba9293b45","fdaed54c27c178a95076ef75557da664cf4f9e30aac087f6d32cc903410f0511","cbc41122e6d975ce71a7f3329b7d337a33d68bd79e0773bcabc58850daaf3990","743bd3264dae16734d728b52942e22c7474082156cf08bea042c83fe8e683090","bbba0f78e0b7c4c4b62cf0810fff2b774225ba71c1f6f08ff1fd6928c1fad611","4081e497d4e1be2671976aea943a34daafe4ca285b92550defea3f6c5e6e8965","6012f213231f72f4c06092717fc40f9fa8f514c5e583b27550c3fe1441fb330e","8b0d0aa18240c76425f8ae474926c9fd65a3ac3264111991653aec7eb47c4b30","66da834d094272008b62b0c49fa1d69ce290800ead4fa92d251137444a6f78c7","5c7dafd1da3c737c4f1b95572e5e0de3fa88b6529642f7bb705da39358c52635","26927331a447d6d14dfa26f55bf8ddefe1f5b62ad067ea0b31d1a681596c059d","f28f3eb2d71115db52128384678a5dc47b79715d5f9342836f2402d1aa2ae931","19cce8b70c59e7dfdebf7d6948487625f92da6b619672b2ac6e1b19ef08faca5","76e655dfdf12ba56ef51a07dda9c49fce0cfff9ca749f91fee171b45dc390987","cb54e8c23569192f603de50e37d1effe050832884cfc4ca7b207eaa6eea034c4","9c40547f97a80e178bab74cc17ce02c956b80887e80994222e46fcafbda2fc98","0a7ded7cd1b22ca933eabdf42ae0930a8711e7af4897c875138f08513f5be81a","227e981a1823d7a2da07dda7eeebf42c40ecc0be02d0037a45c5d6d8745ab29a","088a30c94bf373349ea2da1022642b5e54429f5f91d6b4a6d8a33b0e5fc8cb61","0392e27872180b6da49f80f10091ab861b90960461de0a853d774a3c5b577487","4f445802f33c5c8ba9a127cdb0778a02d80bc637d7efbd45117adc797bf2cdaf","c00cad497f8c18d79b7cb0f6d3d7462a922384ba0323c9e8e50123972bfc4904","fc551230261683f58d78b99380b2eb62525f112902d131341df89606d5a423e2","fe6f012dc4d0509553156b7957aab646703f8138a35d3878508a3ce1cc9d1d71","af9d1a6c0f14931bf1a050bc12deb052b24b4a1c2680366734fec9b5ff431850","7eac38bc715b44db042e3d3fe8dd1d550d6bb3b15b5d715cb7586d7e6c53c3e7","575583a244d92d5438d054aa4fd14c2e6added5314873f789abc52ce7bb50397","a5b6d895f1477958701942aa740640e2194f306331b71235b4ddec190a3f7448","0ea0720994ba3c0658f98bf4956b5471d3f38d0c2f90e2a14c5c4e08578a5fb1","cb9655096780d2427842e49f021a1b979dfd0bb83a7d1051a8449879a36f38c7","e6337d77773d763c79a1e8ba90ed6dccbd8b3b0736c78f87076a2d98d32979f4","21ed8d6fa955375cf35f391bc11eda531012e179337fcf3db52a3676cd56cb8b","9d64a0bc2440331a0dcb2d763a298fe42e2cfdf4f1bfc02436e10c373d457ca6","98b183f3a887f6ea832c3628ac263a71a905c47723e9cc699e70e4d481698f12","1cc70e8f58908f5fd9e0166fc9382b4b7a73e1f4d60f37e1f8aadda3b6703e93","667c25be258721c09c9da7c228e2b7341231f9c2b3f59a2b6be0025785044373","88d15604d39aacd3315e2c6467f2787eab52f6073404e8fa920eb21c061797a1","4329bab0bad8f11adbb7e69f68e7540130331907b257c6584192775ac5fcba19","bae374c17de2a936df4fd9e68d55cf14b0eff7301e4306388618f929f5a4825e","a425af7d90db91e6b2851ef4649a24fa6f5881411e9388d4410b1a6e3fde2e7f","3d6c1f1cf2cf416ca87cac68585d3c358a0ba406e14873edcb707a6b4be6dec8","0560d3dd801f1b496258932510f77a2df19c0e04812aa52e26b8ac14bd5ed2ac","ff975b363ac892f0508fbd187b765e49ab8c70ca093ee5b19b927b84137d34b7","4b093729b0d64f046a98d1b0d79ce9cb361ea8a32a87b86fe475eefabadad101","fdfbe321c556c39a2ecf791d537b999591d0849e971dd938d88f460fea0186f6","1db6491f25ced62f23f06d1f3700a790df0971726acb33669bbf4a8de2f769a9","62cc14cefa5b8c939fb83273b870c3df98365da864fbcd940fd0cbdaa536b8a4","83251e0cbcb139e6f861efda493a9eab0f0ba617d3aa275bf9558ec2f37ad678","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"],"options":{"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"target":2},"fileIdsList":[[92,94],[88,89],[88,89,90,91],[93],[140],[97],[139,140],[98],[99,107,108,115,124],[99,100,107,115],[131],[102,103,108,116],[103,124],[104,105,107,115],[105],[106,107],[107],[107,108,109,124,130],[108,109],[110,115,124,130],[107,108,110,111,115,124,127,130],[110,112,127,130],[141],[107,113],[114,130],[105,107,115,124],[116],[117],[97,118],[129],[120],[121],[107,122],[122,123,131,133],[107,124],[125],[126],[115,127],[128],[96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135],[136,137,138],[115,129],[121,130],[124,132],[133],[138],[107,109,124,130,133,134],[124,135],[84],[33],[59],[33,59],[33,35,76,85,108,117],[35,76],[33,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,108,117],[33,35,59],[33,35],[33,35,58,74,75,117],[33,34],[33,34,35,58,74,117],[59,74],[33,34,35,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,117],[33,34,35,59],[33,35,58,59,108,117]],"referencedMap":[[95,1],[90,2],[92,3],[91,2],[94,4],[140,5],[97,6],[141,7],[98,8],[99,9],[100,10],[101,11],[102,12],[103,13],[104,14],[105,15],[106,16],[107,17],[108,18],[109,19],[110,20],[111,21],[112,22],[142,23],[113,24],[114,25],[115,26],[116,27],[117,28],[118,29],[119,30],[120,31],[121,32],[122,33],[123,34],[124,35],[125,36],[126,37],[127,38],[128,39],[136,40],[139,41],[129,42],[130,43],[131,11],[132,44],[133,45],[138,46],[134,47],[135,48],[85,49],[34,50],[79,51],[80,51],[81,51],[82,51],[83,51],[78,52],[86,53],[77,54],[58,55],[47,56],[44,56],[37,56],[45,56],[51,57],[50,56],[53,57],[57,57],[46,57],[43,57],[49,57],[55,57],[48,57],[39,56],[52,56],[38,56],[40,56],[41,56],[54,57],[42,56],[76,58],[35,59],[59,60],[87,61],[74,62],[60,63],[64,63],[70,57],[72,56],[71,57],[67,63],[69,56],[63,56],[68,57],[66,56],[61,63],[62,63],[73,63],[65,56],[56,64]],"exportedModulesMap":[[95,1],[90,2],[92,3],[91,2],[94,4],[140,5],[97,6],[141,7],[98,8],[99,9],[100,10],[101,11],[102,12],[103,13],[104,14],[105,15],[106,16],[107,17],[108,18],[109,19],[110,20],[111,21],[112,22],[142,23],[113,24],[114,25],[115,26],[116,27],[117,28],[118,29],[119,30],[120,31],[121,32],[122,33],[123,34],[124,35],[125,36],[126,37],[127,38],[128,39],[136,40],[139,41],[129,42],[130,43],[131,11],[132,44],[133,45],[138,46],[134,47],[135,48],[85,49],[34,50],[79,51],[80,51],[81,51],[82,51],[83,51],[78,52],[86,53],[77,54],[58,55],[47,56],[44,56],[37,56],[45,56],[51,57],[50,56],[53,57],[57,57],[46,57],[43,57],[49,57],[55,57],[48,57],[39,56],[52,56],[38,56],[40,56],[41,56],[54,57],[42,56],[76,58],[35,59],[59,60],[87,61],[74,62],[60,63],[64,63],[70,57],[72,56],[71,57],[67,63],[69,56],[63,56],[68,57],[66,56],[61,63],[62,63],[73,63],[65,56],[56,64]],"semanticDiagnosticsPerFile":[95,88,90,92,91,89,94,93,140,97,141,98,99,100,101,102,103,104,105,106,107,108,109,96,137,110,111,112,142,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,136,139,129,130,131,132,133,138,134,135,36,84,85,34,7,8,12,11,3,13,14,15,16,17,18,19,20,4,5,24,21,22,23,25,26,27,6,28,29,30,31,2,1,32,10,9,33,75,79,80,81,82,83,78,86,77,58,47,44,37,45,51,50,53,57,46,43,49,55,48,39,52,38,40,41,54,42,76,35,59,87,74,60,64,70,72,71,67,69,63,68,66,61,62,73,65,56]},"version":"4.5.3"}
@@ -53,9 +53,11 @@ export interface ParsedLogic {
53
53
  typeNode: ts.TypeNode;
54
54
  withLogicFunction: boolean;
55
55
  }>;
56
+ importFromKeaInLogicType: Set<string>;
56
57
  }
57
58
  export interface AppOptions {
58
59
  tsConfigPath?: string;
60
+ packageJsonPath?: string;
59
61
  sourceFilePath?: string;
60
62
  rootPath?: string;
61
63
  typesPath?: string;
@@ -64,6 +66,8 @@ export interface AppOptions {
64
66
  quiet?: boolean;
65
67
  verbose?: boolean;
66
68
  noImport?: boolean;
69
+ importGlobalTypes?: boolean;
70
+ ignoreImportPaths?: string[];
67
71
  writePaths?: boolean;
68
72
  log: (message: string) => void;
69
73
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kea-typegen",
3
- "version": "1.4.0",
3
+ "version": "1.4.3",
4
4
  "description": "Generate type definitions for kea logic",
5
5
  "scripts": {
6
6
  "start": "ts-node ./src/cli/typegen.ts",
@@ -9,10 +9,10 @@
9
9
  "prepublishOnly": "npm run test && npm run clean && npm run build",
10
10
  "run-built-cli": "node dist/src/cli/typegen.js",
11
11
  "test": "jest",
12
- "samples:check": "ts-node ./src/cli/typegen.ts check -c ./samples/tsconfig.json",
13
- "samples:write": "ts-node ./src/cli/typegen.ts write -c ./samples/tsconfig.json",
14
- "samples:write:paths": "ts-node ./src/cli/typegen.ts write -c ./samples/tsconfig.json --write-paths",
15
- "samples:watch": "ts-node ./src/cli/typegen.ts watch -c ./samples/tsconfig.json",
12
+ "samples:check": "ts-node ./src/cli/typegen.ts check -r ./samples",
13
+ "samples:write": "ts-node ./src/cli/typegen.ts write -r ./samples --write-paths",
14
+ "samples:write:paths": "ts-node ./src/cli/typegen.ts write -r ./samples --write-paths",
15
+ "samples:watch": "ts-node ./src/cli/typegen.ts watch -r ./samples",
16
16
  "samples:write:posthog": "ts-node ./src/cli/typegen.ts write -c ../../PostHog/posthog/tsconfig.json",
17
17
  "form-plugin:build": "cd form-plugin && yarn && yarn build && cd ..",
18
18
  "form-plugin:rebuild": "yarn form-plugin:build && rm -rf node_modules && yarn"
package/samples/.kearc ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "ignoreImportPaths": ["./donotimport.ts"]
3
+ }
@@ -3,6 +3,7 @@ import { kea, KeaPlugin } from 'kea'
3
3
  import { A1, A2, A3, A4, A5, A7, D1, D3, D6, EventIndex, ExportedApi, R1, R6, S6 } from './autoImportTypes'
4
4
  import { githubLogic } from './githubLogic'
5
5
  import { loadersLogic } from './loadersLogic'
6
+ import { Bla } from './donotimport'
6
7
  import type { autoImportLogicType } from './autoImportLogicType'
7
8
 
8
9
  type L1 = 'haha'
@@ -12,6 +13,7 @@ type L2 = {
12
13
  interface RandomAPI extends ExportedApi.RandomThing {}
13
14
 
14
15
  export const autoImportLogic = kea<autoImportLogicType<L1, L2, RandomAPI>>({
16
+ path: ['autoImportLogic'],
15
17
  props: {} as {
16
18
  asd: D3
17
19
  },
@@ -62,6 +64,7 @@ export const autoImportLogic = kea<autoImportLogicType<L1, L2, RandomAPI>>({
62
64
  defaults: {
63
65
  bla: { bla: 'asd' } as D1,
64
66
  asd: {} as D6,
67
+ notimported: {} as Bla,
65
68
  },
66
69
  reducers: {
67
70
  rbla: [{ bla: 'asd' } as R1, {}],
@@ -1,11 +1,10 @@
1
- // Generated by kea-typegen on Sun, 12 Dec 2021 10:40:33 GMT. DO NOT EDIT THIS FILE MANUALLY.
1
+ // Generated by kea-typegen on Sun, 12 Dec 2021 13:31:25 GMT. DO NOT EDIT THIS FILE MANUALLY.
2
2
 
3
3
  import { Logic } from 'kea'
4
4
 
5
5
  import { A1, A2, A3, A4, A5, A7, D1, D3, D6, EventIndex, ExportedApi, R1, R6, RandomThing, S6, S7 } from './autoImportTypes'
6
6
  import { KeaPlugin } from '../node_modules/kea/lib/index.d'
7
7
  import { HTMLElement } from '../node_modules/@types/react/global.d'
8
- import { NodeJS, Timeout } from '../node_modules/@types/node/globals.d'
9
8
  import { Dashboard, Repository } from './types'
10
9
 
11
10
  export interface autoImportLogicType<L1, L2, RandomAPI> extends Logic {
@@ -135,6 +134,7 @@ export interface autoImportLogicType<L1, L2, RandomAPI> extends Logic {
135
134
  defaults: {
136
135
  bla: D1
137
136
  asd: D6
137
+ notimported: Bla
138
138
  rbla: R1
139
139
  rasd: R6
140
140
  then: null | ExportedApi.RandomThing
@@ -154,6 +154,7 @@ export interface autoImportLogicType<L1, L2, RandomAPI> extends Logic {
154
154
  ) => {
155
155
  bla: D1
156
156
  asd: D6
157
+ notimported: Bla
157
158
  rbla: R1
158
159
  rasd: R6
159
160
  then: null | ExportedApi.RandomThing
@@ -162,6 +163,7 @@ export interface autoImportLogicType<L1, L2, RandomAPI> extends Logic {
162
163
  reducers: {
163
164
  bla: (state: D1, action: any, fullState: any) => D1
164
165
  asd: (state: D6, action: any, fullState: any) => D6
166
+ notimported: (state: Bla, action: any, fullState: any) => Bla
165
167
  rbla: (state: R1, action: any, fullState: any) => R1
166
168
  rasd: (state: R6, action: any, fullState: any) => R6
167
169
  then: (state: null | ExportedApi.RandomThing, action: any, fullState: any) => null | ExportedApi.RandomThing
@@ -169,6 +171,7 @@ export interface autoImportLogicType<L1, L2, RandomAPI> extends Logic {
169
171
  selector: (state: any) => {
170
172
  bla: D1
171
173
  asd: D6
174
+ notimported: Bla
172
175
  rbla: R1
173
176
  rasd: R6
174
177
  then: null | ExportedApi.RandomThing
@@ -176,6 +179,7 @@ export interface autoImportLogicType<L1, L2, RandomAPI> extends Logic {
176
179
  selectors: {
177
180
  bla: (state: any, props?: any) => D1
178
181
  asd: (state: any, props?: any) => D6
182
+ notimported: (state: any, props?: any) => Bla
179
183
  rbla: (state: any, props?: any) => R1
180
184
  rasd: (state: any, props?: any) => R6
181
185
  then: (state: any, props?: any) => null | ExportedApi.RandomThing
@@ -191,6 +195,7 @@ export interface autoImportLogicType<L1, L2, RandomAPI> extends Logic {
191
195
  values: {
192
196
  bla: D1
193
197
  asd: D6
198
+ notimported: Bla
194
199
  rbla: R1
195
200
  rasd: R6
196
201
  then: null | ExportedApi.RandomThing
@@ -45,8 +45,9 @@ function newAction(element: HTMLElement | null): Partial<ActionType> {
45
45
  export const complexLogic = kea<
46
46
  complexLogicType<ActionForm, ActionType, AntdFieldData, DashboardItemType, FormInstance>
47
47
  >({
48
+ path: ['complexLogic'],
48
49
  props: {} as AntdFieldData,
49
-
50
+
50
51
  actions: {
51
52
  setForm: (form: FormInstance) => ({ form }),
52
53
  selectAction: (id: string | null) => ({ id: id || null }),
@@ -155,8 +156,8 @@ export const complexLogic = kea<
155
156
  const a = {} as DashboardItemType
156
157
  const result = { ...a, bla: true }
157
158
  return result
158
- }
159
- ]
159
+ },
160
+ ],
160
161
  },
161
162
 
162
163
  listeners: ({ actions, values }) => ({
@@ -0,0 +1 @@
1
+ export type Bla = 123
@@ -4,6 +4,7 @@ import { githubLogic } from './githubLogic'
4
4
  import { githubConnectLogicType } from './githubConnectLogicType'
5
5
 
6
6
  export const githubConnectLogic = kea<githubConnectLogicType>({
7
+ path: ['githubConnectLogic'],
7
8
  connect: {
8
9
  values: [githubLogic, ['repositories', 'this-one-does-not-exist'], githubLogic(), ['isLoading']],
9
10
  actions: [githubLogic, ['setRepositories', 'will-not-be-imported']],
@@ -5,6 +5,7 @@ import { githubImportLogicType } from './githubImportLogicType'
5
5
  import { Repository } from './types'
6
6
 
7
7
  export const githubImportLogic = kea<githubImportLogicType>({
8
+ path: ['githubImportLogic'],
8
9
  reducers: () => ({
9
10
  repositoryReducerCopy: [
10
11
  [] as Repository[],
@@ -5,6 +5,7 @@ import { Repository } from './types'
5
5
  const API_URL = 'https://api.github.com'
6
6
 
7
7
  export const githubLogic = kea<githubLogicType>({
8
+ path: ['githubLogic'],
8
9
  actions: {
9
10
  setUsername: (username: string) => ({ username }),
10
11
  setRepositories: (repositories: Repository[]) => ({ repositories }),
@@ -4,6 +4,8 @@ import * as ts from 'typescript'
4
4
  export default {
5
5
  visitKeaProperty({ name, parsedLogic, type }) {
6
6
  if (name === 'inline') {
7
+ parsedLogic.importFromKeaInLogicType.add('NotReallyHereButImportedBecausePlugin')
8
+
7
9
  // add action "submitForm" to parsedLogic
8
10
  parsedLogic.actions.push({
9
11
  name: 'inlineAction',
@@ -33,4 +35,4 @@ export default {
33
35
  })
34
36
  }
35
37
  },
36
- } as Plugin
38
+ } as Plugin
@@ -4,6 +4,7 @@ import { loadersLogicType } from './loadersLogicType'
4
4
  import { Dashboard } from './types'
5
5
 
6
6
  export const loadersLogic = kea<loadersLogicType>({
7
+ path: ['loadersLogic'],
7
8
  actions: {
8
9
  addDashboard: (name: string) => ({ name }),
9
10
  },
@@ -4,6 +4,7 @@ import { inlinePlugin } from './inline-plugin'
4
4
  import { pluginLogicType, anotherPluginLogicType } from './pluginLogicType'
5
5
 
6
6
  export const pluginLogic = kea<pluginLogicType>({
7
+ path: ['pluginLogic'],
7
8
  inline: { bla: true },
8
9
 
9
10
  form: {
@@ -19,6 +20,7 @@ export const pluginLogic = kea<pluginLogicType>({
19
20
  })
20
21
 
21
22
  export const anotherPluginLogic = kea<anotherPluginLogicType>({
23
+ path: ['pluginLogic'],
22
24
  form: ({ values }) => ({
23
25
  default: {
24
26
  name: 'john',
@@ -1,6 +1,6 @@
1
- // Generated by kea-typegen on Mon, 12 Jul 2021 21:41:23 GMT. DO NOT EDIT THIS FILE MANUALLY.
1
+ // Generated by kea-typegen on Fri, 18 Mar 2022 10:41:34 GMT. DO NOT EDIT THIS FILE MANUALLY.
2
2
 
3
- import { Logic } from 'kea'
3
+ import { Logic, NotReallyHereButImportedBecausePlugin } from 'kea'
4
4
 
5
5
  export interface pluginLogicType extends Logic {
6
6
  actionCreators: {
@@ -2,6 +2,7 @@ import { kea } from 'kea'
2
2
  import { propsLogicType } from './propsLogicType'
3
3
 
4
4
  const propsLogic = kea<propsLogicType>({
5
+ path: (key) => ['propsLogic', key],
5
6
  props: {
6
7
  /* TODO for 3.0: set default props here */
7
8
  } as {
@@ -1,29 +1,29 @@
1
- // Generated by kea-typegen on Wed, 23 Jun 2021 09:53:33 GMT. DO NOT EDIT THIS FILE MANUALLY.
1
+ // Generated by kea-typegen on Sun, 12 Dec 2021 13:38:14 GMT. DO NOT EDIT THIS FILE MANUALLY.
2
2
 
3
3
  import { Logic } from 'kea'
4
4
 
5
5
  export interface propsLogicType extends Logic {
6
6
  actionCreators: {
7
7
  setPage: (page: string) => {
8
- type: 'set page (propsLogic)'
8
+ type: 'set page (propsLogic.*)'
9
9
  payload: {
10
10
  page: string
11
11
  }
12
12
  }
13
13
  setId: (id: number) => {
14
- type: 'set id (propsLogic)'
14
+ type: 'set id (propsLogic.*)'
15
15
  payload: {
16
16
  id: number
17
17
  }
18
18
  }
19
19
  }
20
20
  actionKeys: {
21
- 'set page (propsLogic)': 'setPage'
22
- 'set id (propsLogic)': 'setId'
21
+ 'set page (propsLogic.*)': 'setPage'
22
+ 'set id (propsLogic.*)': 'setId'
23
23
  }
24
24
  actionTypes: {
25
- setPage: 'set page (propsLogic)'
26
- setId: 'set id (propsLogic)'
25
+ setPage: 'set page (propsLogic.*)'
26
+ setId: 'set id (propsLogic.*)'
27
27
  }
28
28
  actions: {
29
29
  setPage: (page: string) => void
@@ -36,8 +36,8 @@ export interface propsLogicType extends Logic {
36
36
  events: {}
37
37
  key: number
38
38
  listeners: {}
39
- path: ['propsLogic']
40
- pathString: 'propsLogic'
39
+ path: ['propsLogic', '*']
40
+ pathString: 'propsLogic.*'
41
41
  props: {
42
42
  page: string
43
43
  id: number
@@ -1,86 +1,17 @@
1
- // Generated by kea-typegen on Tue, 13 Jul 2021 22:19:33 GMT. DO NOT EDIT THIS FILE MANUALLY.
1
+ // Generated by kea-typegen on Fri, 18 Mar 2022 10:41:08 GMT. DO NOT EDIT THIS FILE MANUALLY.
2
2
 
3
3
  import { Logic } from 'kea'
4
4
 
5
5
  export interface routerConnectLogicType extends Logic {
6
- actionCreators: {
7
- locationChanged: ({
8
- method,
9
- pathname,
10
- search,
11
- searchParams,
12
- hash,
13
- hashParams,
14
- initial,
15
- }: {
16
- method: 'PUSH' | 'REPLACE' | 'POP'
17
- pathname: string
18
- search: string
19
- searchParams: Record<string, any>
20
- hash: string
21
- hashParams: Record<string, any>
22
- url: string
23
- initial?: boolean
24
- }) => {
25
- type: 'location changed (containers.pages.main)'
26
- payload: {
27
- method: 'PUSH' | 'REPLACE' | 'POP'
28
- pathname: string
29
- search: string
30
- searchParams: Record<string, any>
31
- hash: string
32
- hashParams: Record<string, any>
33
- initial: boolean
34
- }
35
- }
36
- }
37
- actionKeys: {
38
- 'location changed (containers.pages.main)': 'locationChanged'
39
- }
40
- actionTypes: {
41
- locationChanged: 'location changed (containers.pages.main)'
42
- }
43
- actions: {
44
- locationChanged: ({
45
- method,
46
- pathname,
47
- search,
48
- searchParams,
49
- hash,
50
- hashParams,
51
- initial,
52
- }: {
53
- method: 'PUSH' | 'REPLACE' | 'POP'
54
- pathname: string
55
- search: string
56
- searchParams: Record<string, any>
57
- hash: string
58
- hashParams: Record<string, any>
59
- url: string
60
- initial?: boolean
61
- }) => void
62
- }
6
+ actionCreators: {}
7
+ actionKeys: {}
8
+ actionTypes: {}
9
+ actions: {}
63
10
  constants: {}
64
11
  defaults: {}
65
12
  events: {}
66
13
  key: undefined
67
- listeners: {
68
- locationChanged: ((
69
- action: {
70
- type: 'location changed (containers.pages.main)'
71
- payload: {
72
- method: 'PUSH' | 'REPLACE' | 'POP'
73
- pathname: string
74
- search: string
75
- searchParams: Record<string, any>
76
- hash: string
77
- hashParams: Record<string, any>
78
- initial: boolean
79
- }
80
- },
81
- previousState: any,
82
- ) => void | Promise<void>)[]
83
- }
14
+ listeners: {}
84
15
  path: ['containers', 'pages', 'main']
85
16
  pathString: 'containers.pages.main'
86
17
  props: Record<string, unknown>
@@ -1,6 +1,7 @@
1
1
  import { kea } from 'kea'
2
2
  import { windowValuesLogicType } from './windowValuesLogicType'
3
3
  export const windowValuesLogic = kea<windowValuesLogicType>({
4
+ path: ['windowValuesLogic'],
4
5
  windowValues: () => ({
5
6
  windowHeight: (window) => window.innerHeight,
6
7
  windowWidth: (window) => Math.min(window.innerWidth, window.document.body.clientWidth),
@@ -47,6 +47,14 @@ yargs
47
47
  .option('quiet', { alias: 'q', describe: 'Write nothing to stdout', type: 'boolean' })
48
48
  .option('no-import', { describe: 'Do not automatically import generated types in logic files', type: 'boolean' })
49
49
  .option('write-paths', { describe: 'Write paths into logic files that have none', type: 'boolean' })
50
+ .option('import-global-types', {
51
+ describe: 'Add import statements in logicType.ts files for global types (e.g. @types/node)',
52
+ type: 'boolean',
53
+ })
54
+ .option('ignore-import-paths', {
55
+ describe: 'List of paths we will never import from inside logicType.ts files',
56
+ type: 'array',
57
+ })
50
58
  .option('verbose', { describe: 'Slightly more verbose output log', type: 'boolean' })
51
59
  .demandCommand()
52
60
  .help()
@@ -62,18 +70,20 @@ function parsedToAppOptions(parsedOptions) {
62
70
  verbose: parsedOptions.verbose,
63
71
  noImport: parsedOptions.noImport,
64
72
  writePaths: parsedOptions.writePaths,
73
+ importGlobalTypes: parsedOptions.importGlobalTypes,
74
+ ignoreImportPaths: parsedOptions.ignoreImportPaths,
65
75
  log: parsedOptions.quiet ? () => null : console.log.bind(console),
66
76
  } as AppOptions
67
77
 
68
78
  return appOptions
69
79
  }
70
80
 
71
- function findKeaConfig(): string {
72
- return ts.findConfigFile('./', ts.sys.fileExists, '.kearc')
81
+ function findKeaConfig(searchPath): string {
82
+ return ts.findConfigFile(searchPath, ts.sys.fileExists, '.kearc')
73
83
  }
74
84
 
75
85
  function includeKeaConfig(appOptions: AppOptions): AppOptions {
76
- const configFilePath = findKeaConfig()
86
+ const configFilePath = findKeaConfig(appOptions.rootPath)
77
87
  const newOptions = { ...appOptions } as AppOptions
78
88
 
79
89
  let rawData, keaConfig
@@ -107,16 +117,18 @@ function includeKeaConfig(appOptions: AppOptions): AppOptions {
107
117
  // set all paths in .kearc to be relative from where the file is located
108
118
  if (key.endsWith('Path')) {
109
119
  newOptions[key] = path.resolve(process.cwd(), configDirPath, keaConfig[key])
120
+ } else if (key.endsWith('Paths') && key !== 'writePaths') {
121
+ if (!Array.isArray(keaConfig[key])) {
122
+ console.error(`Config "${key}" in ".kearc" is not an array`)
123
+ process.exit(1)
124
+ }
125
+ newOptions[key] = keaConfig[key].map((value) => path.resolve(process.cwd(), configDirPath, value))
110
126
  } else {
111
127
  newOptions[key] = keaConfig[key]
112
128
  }
113
129
  })
114
130
  }
115
131
 
116
- if (!newOptions.tsConfigPath) {
117
- newOptions.tsConfigPath = ts.findConfigFile('./', ts.sys.fileExists, 'tsconfig.json')
118
- }
119
-
120
132
  if (!newOptions.rootPath) {
121
133
  newOptions.rootPath = newOptions.tsConfigPath ? path.dirname(newOptions.tsConfigPath) : process.cwd()
122
134
  }
@@ -125,5 +137,17 @@ function includeKeaConfig(appOptions: AppOptions): AppOptions {
125
137
  newOptions.typesPath = newOptions.rootPath
126
138
  }
127
139
 
140
+ if (!newOptions.tsConfigPath) {
141
+ newOptions.tsConfigPath =
142
+ ts.findConfigFile(newOptions.rootPath, ts.sys.fileExists, 'tsconfig.json') ||
143
+ ts.findConfigFile('./', ts.sys.fileExists, 'tsconfig.json')
144
+ }
145
+
146
+ if (!newOptions.packageJsonPath) {
147
+ newOptions.packageJsonPath =
148
+ ts.findConfigFile(newOptions.rootPath, ts.sys.fileExists, 'package.json') ||
149
+ ts.findConfigFile('./', ts.sys.fileExists, 'package.json')
150
+ }
151
+
128
152
  return newOptions
129
153
  }
@@ -72,6 +72,29 @@ export function printToFiles(
72
72
  printLogicType(parsedLogic, appOptions)
73
73
  }
74
74
 
75
+ // Automatically ignore imports from "node_modules/@types/node", if {types: ["node"]} in tsconfig.json
76
+ const defaultGlobalTypePaths = appOptions.importGlobalTypes
77
+ ? []
78
+ : (program.getCompilerOptions().types || []).map(
79
+ (type) =>
80
+ path.join(
81
+ appOptions.packageJsonPath ? path.dirname(appOptions.packageJsonPath) : appOptions.rootPath,
82
+ 'node_modules',
83
+ '@types',
84
+ type,
85
+ ) + path.sep,
86
+ )
87
+
88
+ // Manually ignored
89
+ const ignoredImportPaths = (appOptions.ignoreImportPaths || []).map((importPath) =>
90
+ path.resolve(appOptions.rootPath, importPath),
91
+ )
92
+
93
+ const doNotImportFromPaths = [...defaultGlobalTypePaths, ...ignoredImportPaths]
94
+
95
+ const shouldIgnore = (absolutePath: string) =>
96
+ !!doNotImportFromPaths.find((badPath) => absolutePath.startsWith(badPath))
97
+
75
98
  let writtenFiles = 0
76
99
  let filesToWrite = 0
77
100
  let filesToModify = 0
@@ -80,18 +103,20 @@ export function printToFiles(
80
103
  const typeFileName = parsedLogics[0].typeFileName
81
104
 
82
105
  const logicStrings = []
106
+ const requiredKeys = new Set(['Logic'])
83
107
  for (const parsedLogic of parsedLogics) {
84
108
  const logicTypeStirng = runThroughPrettier(nodeToString(parsedLogic.interfaceDeclaration), typeFileName)
85
109
  logicStrings.push(logicTypeStirng)
110
+ for (const string of parsedLogic.importFromKeaInLogicType.values()) {
111
+ requiredKeys.add(string)
112
+ }
113
+ if (parsedLogic.sharedListeners.length > 0) {
114
+ requiredKeys.add('BreakPointFunction')
115
+ }
86
116
  }
87
117
 
88
118
  const output = logicStrings.join('\n\n')
89
119
 
90
- const requiredKeys = ['Logic']
91
- if (parsedLogics.find((l) => l.sharedListeners.length > 0)) {
92
- requiredKeys.push('BreakPointFunction')
93
- }
94
-
95
120
  const otherimports = Object.entries(parsedLogics[0].typeReferencesToImportFromFiles)
96
121
  .filter(([_, list]) => list.size > 0)
97
122
  .map(([file, list]) => {
@@ -100,13 +125,19 @@ export function printToFiles(
100
125
  if (!relativePath.startsWith('.')) {
101
126
  relativePath = `./${relativePath}`
102
127
  }
103
- return `import { ${[...list].sort().join(', ')} } from '${relativePath}'`
128
+ return {
129
+ list: [...list].sort(),
130
+ fullPath: file,
131
+ relativePath,
132
+ }
104
133
  })
134
+ .filter(({ fullPath }) => !shouldIgnore(fullPath))
135
+ .map(({ list, relativePath }) => `import { ${list.join(', ')} } from '${relativePath}'`)
105
136
  .join('\n')
106
137
 
107
138
  const finalOutput = [
108
139
  `// Generated by kea-typegen on ${new Date().toUTCString()}. DO NOT EDIT THIS FILE MANUALLY.`,
109
- `import { ${requiredKeys.join(', ')} } from 'kea'`,
140
+ `import { ${[...requiredKeys.values()].join(', ')} } from 'kea'`,
110
141
  otherimports,
111
142
  output,
112
143
  ]
package/src/types.ts CHANGED
@@ -53,10 +53,12 @@ export interface ParsedLogic {
53
53
  typeReferencesInLogicInput: Set<string>
54
54
  interfaceDeclaration?: ts.InterfaceDeclaration
55
55
  extraInput: Record<string, { typeNode: ts.TypeNode; withLogicFunction: boolean }>
56
+ importFromKeaInLogicType: Set<string>
56
57
  }
57
58
 
58
59
  export interface AppOptions {
59
60
  tsConfigPath?: string
61
+ packageJsonPath?: string
60
62
  sourceFilePath?: string
61
63
  rootPath?: string
62
64
  typesPath?: string
@@ -64,7 +66,13 @@ export interface AppOptions {
64
66
  watch?: boolean
65
67
  quiet?: boolean
66
68
  verbose?: boolean
69
+ /** Do not write imports inside logic.ts files */
67
70
  noImport?: boolean
71
+ /** Add import statements in logicType.ts files for global types (e.g. @types/node) */
72
+ importGlobalTypes?: boolean
73
+ /** List of paths we will never import from inside logicType.ts files */
74
+ ignoreImportPaths?: string[]
75
+ /** Write paths inside logic.ts files */
68
76
  writePaths?: boolean
69
77
 
70
78
  log: (message: string) => void
package/src/utils.ts CHANGED
@@ -216,7 +216,7 @@ export function getLogicPathString(appOptions: AppOptions, fileName: string) {
216
216
  }
217
217
 
218
218
  export function getFilenamesForSymbol(symbol: ts.Symbol): string[] | undefined {
219
- return symbol?.declarations
219
+ return (symbol?.declarations || [])
220
220
  .map((d) => d.getSourceFile().fileName)
221
221
  .filter((str) => !str.includes('/node_modules/typescript/lib/lib'))
222
222
  }
@@ -254,9 +254,9 @@ export function storeExtractedSymbol(
254
254
  parsedLogic: ParsedLogic,
255
255
  typeRootName?: string,
256
256
  ) {
257
- const declaration = symbol.getDeclarations()[0]
257
+ const declaration = symbol.getDeclarations()?.[0]
258
258
 
259
- if (ts.isImportSpecifier(declaration)) {
259
+ if (declaration && ts.isImportSpecifier(declaration)) {
260
260
  const importFilename = getFilenameForImportSpecifier(declaration, checker)
261
261
  if (importFilename) {
262
262
  addTypeImport(parsedLogic, importFilename, typeRootName || declaration.getText())
@@ -219,6 +219,7 @@ export function visitKeaCalls(
219
219
  typeReferencesToImportFromFiles: {},
220
220
  typeReferencesInLogicInput: new Set(),
221
221
  extraInput: {},
222
+ importFromKeaInLogicType: new Set([]),
222
223
  }
223
224
 
224
225
  const input = (node.parent as ts.CallExpression).arguments[0] as ts.ObjectLiteralExpression
@@ -1 +0,0 @@
1
- {"program":{"fileNames":["../../../../posthog/posthog/node_modules/typescript/lib/lib.es6.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es5.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2016.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2017.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2018.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.dom.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.scripthost.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../../posthog/posthog/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/redux/index.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/scheduler/tracing.d.ts","../../../node_modules/@types/react/index.d.ts","../../node_modules/kea/lib/index.d.ts","../autoimporttypes.ts","../types.ts","../githublogic.ts","../loaderslogic.ts","../autoimportlogic.ts","../complexlogic.ts","../github.tsx","../githubconnectlogic.ts","../githubimportlogic.ts","../logic.ts","../propslogic.ts","../windowvalueslogic.ts","../../node_modules/jest-diff/build/cleanupsemantic.d.ts","../../node_modules/jest-diff/build/types.d.ts","../../node_modules/jest-diff/build/difflines.d.ts","../../node_modules/jest-diff/build/printdiffs.d.ts","../../node_modules/jest-diff/build/index.d.ts","../../node_modules/pretty-format/build/types.d.ts","../../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":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"ac3a8c4040e183ce38da69d23b96939112457d1936198e6542672b7963cf0fce","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"1dad4fe1561d99dfd6709127608b99a76e5c2643626c800434f99c48038567ee","affectsGlobalScope":true},{"version":"a8fe23ae87c3e9d2877032cafeb290f2ebe0c51e216d175a0408b10915ebe9f0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"cce43d02223f8049864f8568bed322c39424013275cd3bcc3f51492d8b546cb3","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"8dff1b4c2df638fcd976cbb0e636f23ab5968e836cd45084cc31d47d1ab19c49","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"8f4c9f651c8294a2eb1cbd12581fe25bfb901ab1d474bb93cd38c7e2f4be7a30","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"60761e6ea886034af0f294f025a7199360ce4e2c8ba4ec6408bc049cf9b89799","affectsGlobalScope":true},{"version":"506b80b9951c9381dc5f11897b31fca5e2a65731d96ddefa19687fbc26b23c6e","affectsGlobalScope":true},{"version":"d530250769a14518ebd6edda5b5f94abaaf3b9f612363c0da32082fa6acd0da8","affectsGlobalScope":true},{"version":"ecf78e637f710f340ec08d5d92b3f31b134a46a4fcf2e758690d8c46ce62cba6","affectsGlobalScope":true},"4ee363f83d7be2202f34fcd84c44da71bf3a9329fee8a05f976f75083a52ea94","a7e32dcb90bf0c1b7a1e4ac89b0f7747cbcba25e7beddc1ebf17be1e161842ad","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"5d708266116e778d6a4140fca2ac36f71d99b4c68bc3be63a45ba8bf5ade5348","affectsGlobalScope":true},"cbd220e9a6a368544339d1f04b012496255e8c2b8c53ea02e944ed6e31784cb1","92b35501f61bcef2a8174893b5f284c2200b9167d41544c184eaa4f228e94975","d1c1ea955f446a5a567a5038b96e7ac45fd4500cdf4151ab85d7d5b4c655ecb4","7e290610a1203c319d62c74ec86f31aa14d5d09ab8873549a1d54dbdb7f44ea8","99839823ddd42d253e31995b9aa5ab0fe61e17879d6b1251e9a6db8016b29f18","0247741d64b9ad435d8fd290d10256b75d665b58acb54253b6a75d303078ea09","8b8bd8a596b64c35e0905fb50490bcca343a283ea443221962e33d9e14d99c82","2d8d7a19f00103fc8b9044b1e73e823f206907aa1d3c61ca2c539e5417505a23","ab6919028d2bcac17bc3dfd0cae1ec4d6c41be76e890df42239cff91301da3d7","6c2ae1ac5bf68314dc850cf2294d55f897d137760bd898b5d2f9d4a6da020fea","2a3b25ad068fe62fa7338c4206b37f6e987d78e0f28d599fbeabc6a2c15b4eb8","da6b2b783d41122efe29a24492e01f92b035024a3030a8be091ad15c03df9459","8ddcf6f57b17e0f692433dea893be5519e840d6a526b5e431b49b2d24f971c21","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"],"options":{"declaration":true,"emitDecoratorMetadata":true,"experimentalDecorators":true,"jsx":2,"module":1,"outDir":"./","removeComments":true,"sourceMap":true,"target":2},"fileIdsList":[[56,58],[104],[61],[103,104],[62],[63,71,72,79,88],[63,64,71,79],[95],[66,67,72,80],[67,88],[68,69,71,79],[69],[70,71],[71],[71,72,73,88,94],[72,73],[74,79,88,94],[71,72,74,75,79,88,91,94],[74,76,91,94],[105],[71,77],[78,94],[69,71,79,88],[80],[81],[61,82],[93],[84],[85],[71,86],[86,87,95,97],[71,88],[89],[90],[79,91],[92],[60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99],[100,101,102],[79,93],[85,94],[88,96],[97],[102],[71,73,88,94,97,98],[88,99],[52,53],[52,53,54,55],[33,38],[57],[39,40,42,43],[39],[38,39,42],[39,42],[39,41,42],[39,41],[34,35,36,37]],"referencedMap":[[59,1],[104,2],[61,3],[105,4],[62,5],[63,6],[64,7],[65,8],[66,9],[67,10],[68,11],[69,12],[70,13],[71,14],[72,15],[73,16],[74,17],[75,18],[76,19],[106,20],[77,21],[78,22],[79,23],[80,24],[81,25],[82,26],[83,27],[84,28],[85,29],[86,30],[87,31],[88,32],[89,33],[90,34],[91,35],[92,36],[100,37],[103,38],[93,39],[94,40],[95,8],[96,41],[97,42],[102,43],[98,44],[99,45],[54,46],[56,47],[55,46],[39,48],[58,49],[44,50],[45,51],[46,52],[47,53],[48,54],[42,55],[43,55],[49,53],[50,51],[51,51],[38,56]],"exportedModulesMap":[[59,1],[104,2],[61,3],[105,4],[62,5],[63,6],[64,7],[65,8],[66,9],[67,10],[68,11],[69,12],[70,13],[71,14],[72,15],[73,16],[74,17],[75,18],[76,19],[106,20],[77,21],[78,22],[79,23],[80,24],[81,25],[82,26],[83,27],[84,28],[85,29],[86,30],[87,31],[88,32],[89,33],[90,34],[91,35],[92,36],[100,37],[103,38],[93,39],[94,40],[95,8],[96,41],[97,42],[102,43],[98,44],[99,45],[54,46],[56,47],[55,46],[39,48],[58,49],[44,50],[45,51],[46,52],[47,53],[48,54],[42,55],[43,55],[49,53],[50,51],[51,51],[38,56]],"semanticDiagnosticsPerFile":[59,104,61,105,62,63,64,65,66,67,68,69,70,71,72,73,60,101,74,75,76,106,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,100,103,93,94,95,96,97,102,98,99,52,54,56,55,53,[39,[{"file":"../../node_modules/kea/lib/index.d.ts","start":102,"length":5,"messageText":"Module '\"/Users/marius/Projects/Kea/node_modules/@types/react/index\"' can only be default-imported using the 'esModuleInterop' flag","category":1,"code":1259,"relatedInformation":[{"file":"../../../node_modules/@types/react/index.d.ts","start":2991,"length":15,"messageText":"This module is declared with using 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.","category":1,"code":2594}]}]],58,57,[44,[{"file":"../autoimportlogic.ts","start":74,"length":23,"messageText":"Cannot find module './autoImportLogicType' or its corresponding type declarations.","category":1,"code":2307}]],40,[45,[{"file":"../complexlogic.ts","start":59,"length":20,"messageText":"Cannot find module './complexLogicType' or its corresponding type declarations.","category":1,"code":2307}]],46,[47,[{"file":"../githubconnectlogic.ts","start":110,"length":26,"messageText":"Cannot find module './githubConnectLogicType' or its corresponding type declarations.","category":1,"code":2307}]],[48,[{"file":"../githubimportlogic.ts","start":109,"length":25,"messageText":"Cannot find module './githubImportLogicType' or its corresponding type declarations.","category":1,"code":2307}]],[42,[{"file":"../githublogic.ts","start":58,"length":19,"messageText":"Cannot find module './githubLogicType' or its corresponding type declarations.","category":1,"code":2307}]],[43,[{"file":"../loaderslogic.ts","start":59,"length":20,"messageText":"Cannot find module './loadersLogicType' or its corresponding type declarations.","category":1,"code":2307}]],[49,[{"file":"../logic.ts","start":63,"length":13,"messageText":"Cannot find module './logicType' or its corresponding type declarations.","category":1,"code":2307}]],[50,[{"file":"../propslogic.ts","start":57,"length":18,"messageText":"Cannot find module './propsLogicType' or its corresponding type declarations.","category":1,"code":2307}]],41,[51,[{"file":"../windowvalueslogic.ts","start":61,"length":25,"messageText":"Cannot find module './windowValuesLogicType' or its corresponding type declarations.","category":1,"code":2307}]],36,34,38,37,35,33,7,8,12,11,3,13,14,15,16,17,18,19,20,4,5,24,21,22,23,25,26,27,6,28,29,30,31,2,1,32,10,9],"affectedFilesPendingEmit":[[59,1],[104,1],[61,1],[105,1],[62,1],[63,1],[64,1],[65,1],[66,1],[67,1],[68,1],[69,1],[70,1],[71,1],[72,1],[73,1],[60,1],[101,1],[74,1],[75,1],[76,1],[106,1],[77,1],[78,1],[79,1],[80,1],[81,1],[82,1],[83,1],[84,1],[85,1],[86,1],[87,1],[88,1],[89,1],[90,1],[91,1],[92,1],[100,1],[103,1],[93,1],[94,1],[95,1],[96,1],[97,1],[102,1],[98,1],[99,1],[52,1],[54,1],[56,1],[55,1],[53,1],[39,1],[58,1],[57,1],[44,1],[40,1],[45,1],[46,1],[47,1],[48,1],[42,1],[43,1],[49,1],[50,1],[41,1],[51,1],[36,1],[34,1],[38,1],[37,1],[35,1],[33,1],[3,1],[4,1],[5,1],[6,1],[1,1]]},"version":"4.3.2"}