nestia 3.0.5 → 3.0.8-dev.20220708

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/lib/NestiaApplication.js +102 -288
  2. package/lib/NestiaApplication.js.map +1 -1
  3. package/lib/analyses/ControllerAnalyzer.js +43 -126
  4. package/lib/analyses/ControllerAnalyzer.js.map +1 -1
  5. package/lib/analyses/GenericAnalyzer.js +21 -57
  6. package/lib/analyses/GenericAnalyzer.js.map +1 -1
  7. package/lib/analyses/ImportAnalyzer.js +16 -20
  8. package/lib/analyses/ImportAnalyzer.js.map +1 -1
  9. package/lib/analyses/ReflectAnalyzer.js +61 -185
  10. package/lib/analyses/ReflectAnalyzer.js.map +1 -1
  11. package/lib/analyses/SourceFinder.js +30 -197
  12. package/lib/analyses/SourceFinder.js.map +1 -1
  13. package/lib/executable/internal/CompilerOptions.js +18 -82
  14. package/lib/executable/internal/CompilerOptions.js.map +1 -1
  15. package/lib/executable/internal/NestiaCommand.js +58 -179
  16. package/lib/executable/internal/NestiaCommand.js.map +1 -1
  17. package/lib/executable/internal/NestiaConfig.js +450 -446
  18. package/lib/executable/internal/NestiaConfig.js.map +1 -1
  19. package/lib/executable/internal/nestia.config.getter.js +6 -42
  20. package/lib/executable/internal/nestia.config.getter.js.map +1 -1
  21. package/lib/executable/nestia.js +18 -84
  22. package/lib/executable/nestia.js.map +1 -1
  23. package/lib/generates/FileGenerator.js +80 -255
  24. package/lib/generates/FileGenerator.js.map +1 -1
  25. package/lib/generates/FunctionGenerator.js +65 -118
  26. package/lib/generates/FunctionGenerator.js.map +1 -1
  27. package/lib/generates/SdkGenerator.js +22 -103
  28. package/lib/generates/SdkGenerator.js.map +1 -1
  29. package/lib/generates/SwaggerGenerator.js +122 -261
  30. package/lib/generates/SwaggerGenerator.js.map +1 -1
  31. package/lib/index.js +1 -1
  32. package/lib/index.js.map +1 -1
  33. package/lib/structures/TypeEntry.js +8 -9
  34. package/lib/structures/TypeEntry.js.map +1 -1
  35. package/lib/utils/ArrayUtil.js +13 -118
  36. package/lib/utils/ArrayUtil.js.map +1 -1
  37. package/lib/utils/DirectoryUtil.js +27 -132
  38. package/lib/utils/DirectoryUtil.js.map +1 -1
  39. package/lib/utils/ImportDictionary.js +24 -47
  40. package/lib/utils/ImportDictionary.js.map +1 -1
  41. package/lib/utils/MapUtil.js +2 -2
  42. package/lib/utils/MapUtil.js.map +1 -1
  43. package/lib/utils/StringUtil.js +2 -2
  44. package/lib/utils/StringUtil.js.map +1 -1
  45. package/package.json +4 -4
@@ -31,463 +31,467 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
31
31
  step((generator = generator.apply(thisArg, _arguments || [])).next());
32
32
  });
33
33
  };
34
- var __generator = (this && this.__generator) || function (thisArg, body) {
35
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
36
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
37
- function verb(n) { return function (v) { return step([n, v]); }; }
38
- function step(op) {
39
- if (f) throw new TypeError("Generator is already executing.");
40
- while (_) try {
41
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
42
- if (y = 0, t) op = [op[0] & 2, t.value];
43
- switch (op[0]) {
44
- case 0: case 1: t = op; break;
45
- case 4: _.label++; return { value: op[1], done: false };
46
- case 5: _.label++; y = op[1]; op = [0]; continue;
47
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
48
- default:
49
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
50
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
51
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
52
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
53
- if (t[2]) _.ops.pop();
54
- _.trys.pop(); continue;
55
- }
56
- op = body.call(thisArg, _);
57
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
58
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
59
- }
60
- };
61
34
  var __importDefault = (this && this.__importDefault) || function (mod) {
62
35
  return (mod && mod.__esModule) ? mod : { "default": mod };
63
36
  };
64
37
  Object.defineProperty(exports, "__esModule", { value: true });
65
38
  exports.NestiaConfig = void 0;
66
- var fs_1 = __importDefault(require("fs"));
67
- var path_1 = __importDefault(require("path"));
68
- var runner = __importStar(require("ts-node"));
69
- var nestia_fetcher_1 = require("nestia-fetcher");
70
- var Singleton_1 = require("tstl/thread/Singleton");
71
- var typescript_json_1 = require("typescript-json");
39
+ const fs_1 = __importDefault(require("fs"));
40
+ const path_1 = __importDefault(require("path"));
41
+ const runner = __importStar(require("ts-node"));
42
+ const nestia_fetcher_1 = require("nestia-fetcher");
43
+ const Singleton_1 = require("tstl/thread/Singleton");
44
+ const typescript_json_1 = require("typescript-json");
72
45
  var NestiaConfig;
73
46
  (function (NestiaConfig) {
74
- var _this = this;
75
47
  function get() {
76
48
  return singleton.get();
77
49
  }
78
50
  NestiaConfig.get = get;
79
- var singleton = new Singleton_1.Singleton(function () { return __awaiter(_this, void 0, void 0, function () {
80
- var loaded, config;
81
- return __generator(this, function (_a) {
82
- switch (_a.label) {
83
- case 0:
84
- if (fs_1.default.existsSync("nestia.config.ts") === false)
85
- return [2 /*return*/, null];
86
- runner.register({
87
- emit: false,
88
- compilerOptions: {
89
- noEmit: true,
90
- },
91
- });
92
- return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require(path_1.default.resolve("nestia.config.ts"))); })];
93
- case 1:
94
- loaded = _a.sent();
95
- if (typeof loaded !== "object")
96
- throw new Error("Error on NestiaConfig.get(): failed to load data");
97
- config = typeof loaded.default === "object" ? loaded.default : loaded;
98
- return [2 /*return*/, (function (input) { (function (input, path) {
99
- if (path === void 0) { path = "$input"; }
100
- var $ao = [
101
- function (input, path, exceptionable) { return null !== input.input && undefined !== input.input && ("string" === typeof input.input || Array.isArray(input.input) && input.input.every(function (elem, index6213649304236819) { return "string" === typeof elem; }) || "object" === typeof input.input && $ao[1](input.input, path + ".input", false && exceptionable)) && (function () {
102
- var success = undefined === input.output || "string" === typeof input.output;
103
- if (success === false && exceptionable === true)
104
- throw new typescript_json_1.assertType.TypeGuardError({
105
- method: "assertType",
106
- path: path + ".output",
107
- expected: "(string | undefined)",
108
- value: input.output
109
- });
110
- return success;
111
- })() && (function () {
112
- var success = null !== input.compilerOptions && (undefined === input.compilerOptions || "object" === typeof input.compilerOptions && $ao[2](input.compilerOptions, path + ".compilerOptions", true && exceptionable));
113
- if (success === false && exceptionable === true)
114
- throw new typescript_json_1.assertType.TypeGuardError({
115
- method: "assertType",
116
- path: path + ".compilerOptions",
117
- expected: "(Resolve<ts.CompilerOptions> | undefined)",
118
- value: input.compilerOptions
119
- });
120
- return success;
121
- })() && (undefined === input.assert || false === input.assert || true === input.assert) && (undefined === input.json || false === input.json || true === input.json) && (function () {
122
- var success = null !== input.swagger && (undefined === input.swagger || "object" === typeof input.swagger && $ao[4](input.swagger, path + ".swagger", true && exceptionable));
123
- if (success === false && exceptionable === true)
124
- throw new typescript_json_1.assertType.TypeGuardError({
125
- method: "assertType",
126
- path: path + ".swagger",
127
- expected: "(Resolve<IConfiguration.ISwagger> | undefined)",
128
- value: input.swagger
129
- });
130
- return success;
131
- })(); },
132
- function (input, path, exceptionable) { return (function () {
133
- var success = Array.isArray(input.include) && input.include.every(function (elem, index5449737623551241) { return (function () {
134
- var success = "string" === typeof elem;
135
- if (success === false && exceptionable === true)
136
- throw new typescript_json_1.assertType.TypeGuardError({
137
- method: "assertType",
138
- path: path + ".include[" + index5449737623551241 + "]",
139
- expected: "string",
140
- value: elem
141
- });
142
- return success;
143
- })(); });
144
- if (success === false && exceptionable === true)
145
- throw new typescript_json_1.assertType.TypeGuardError({
146
- method: "assertType",
147
- path: path + ".include",
148
- expected: "Array<string}>",
149
- value: input.include
150
- });
151
- return success;
152
- })() && (function () {
153
- var success = undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every(function (elem, index35274473525319516) { return (function () {
154
- var success = "string" === typeof elem;
155
- if (success === false && exceptionable === true)
156
- throw new typescript_json_1.assertType.TypeGuardError({
157
- method: "assertType",
158
- path: path + ".exclude[" + index35274473525319516 + "]",
159
- expected: "string",
160
- value: elem
161
- });
162
- return success;
163
- })(); });
164
- if (success === false && exceptionable === true)
165
- throw new typescript_json_1.assertType.TypeGuardError({
166
- method: "assertType",
167
- path: path + ".exclude",
168
- expected: "(Array<string}> | undefined)",
169
- value: input.exclude
170
- });
171
- return success;
172
- })(); },
173
- function (input, path, exceptionable) { return (undefined === input.allowJs || false === input.allowJs || true === input.allowJs) && (undefined === input.allowSyntheticDefaultImports || false === input.allowSyntheticDefaultImports || true === input.allowSyntheticDefaultImports) && (undefined === input.allowUmdGlobalAccess || false === input.allowUmdGlobalAccess || true === input.allowUmdGlobalAccess) && (undefined === input.allowUnreachableCode || false === input.allowUnreachableCode || true === input.allowUnreachableCode) && (undefined === input.allowUnusedLabels || false === input.allowUnusedLabels || true === input.allowUnusedLabels) && (undefined === input.alwaysStrict || false === input.alwaysStrict || true === input.alwaysStrict) && (function () {
174
- var success = undefined === input.baseUrl || "string" === typeof input.baseUrl;
175
- if (success === false && exceptionable === true)
176
- throw new typescript_json_1.assertType.TypeGuardError({
177
- method: "assertType",
178
- path: path + ".baseUrl",
179
- expected: "(string | undefined)",
180
- value: input.baseUrl
181
- });
182
- return success;
183
- })() && (function () {
184
- var success = undefined === input.charset || "string" === typeof input.charset;
185
- if (success === false && exceptionable === true)
186
- throw new typescript_json_1.assertType.TypeGuardError({
187
- method: "assertType",
188
- path: path + ".charset",
189
- expected: "(string | undefined)",
190
- value: input.charset
191
- });
192
- return success;
193
- })() && (undefined === input.checkJs || false === input.checkJs || true === input.checkJs) && (undefined === input.declaration || false === input.declaration || true === input.declaration) && (undefined === input.declarationMap || false === input.declarationMap || true === input.declarationMap) && (undefined === input.emitDeclarationOnly || false === input.emitDeclarationOnly || true === input.emitDeclarationOnly) && (function () {
194
- var success = undefined === input.declarationDir || "string" === typeof input.declarationDir;
195
- if (success === false && exceptionable === true)
196
- throw new typescript_json_1.assertType.TypeGuardError({
197
- method: "assertType",
198
- path: path + ".declarationDir",
199
- expected: "(string | undefined)",
200
- value: input.declarationDir
201
- });
202
- return success;
203
- })() && (undefined === input.disableSizeLimit || false === input.disableSizeLimit || true === input.disableSizeLimit) && (undefined === input.disableSourceOfProjectReferenceRedirect || false === input.disableSourceOfProjectReferenceRedirect || true === input.disableSourceOfProjectReferenceRedirect) && (undefined === input.disableSolutionSearching || false === input.disableSolutionSearching || true === input.disableSolutionSearching) && (undefined === input.disableReferencedProjectLoad || false === input.disableReferencedProjectLoad || true === input.disableReferencedProjectLoad) && (undefined === input.downlevelIteration || false === input.downlevelIteration || true === input.downlevelIteration) && (undefined === input.emitBOM || false === input.emitBOM || true === input.emitBOM) && (undefined === input.emitDecoratorMetadata || false === input.emitDecoratorMetadata || true === input.emitDecoratorMetadata) && (undefined === input.exactOptionalPropertyTypes || false === input.exactOptionalPropertyTypes || true === input.exactOptionalPropertyTypes) && (undefined === input.experimentalDecorators || false === input.experimentalDecorators || true === input.experimentalDecorators) && (undefined === input.forceConsistentCasingInFileNames || false === input.forceConsistentCasingInFileNames || true === input.forceConsistentCasingInFileNames) && (undefined === input.importHelpers || false === input.importHelpers || true === input.importHelpers) && (undefined === input.importsNotUsedAsValues || 0 === input.importsNotUsedAsValues || 1 === input.importsNotUsedAsValues || 2 === input.importsNotUsedAsValues) && (undefined === input.inlineSourceMap || false === input.inlineSourceMap || true === input.inlineSourceMap) && (undefined === input.inlineSources || false === input.inlineSources || true === input.inlineSources) && (undefined === input.isolatedModules || false === input.isolatedModules || true === input.isolatedModules) && (undefined === input.jsx || 0 === input.jsx || 1 === input.jsx || 2 === input.jsx || 3 === input.jsx || 4 === input.jsx || 5 === input.jsx) && (undefined === input.keyofStringsOnly || false === input.keyofStringsOnly || true === input.keyofStringsOnly) && (function () {
204
- var success = undefined === input.lib || Array.isArray(input.lib) && input.lib.every(function (elem, index37655397582355143) { return (function () {
205
- var success = "string" === typeof elem;
206
- if (success === false && exceptionable === true)
207
- throw new typescript_json_1.assertType.TypeGuardError({
208
- method: "assertType",
209
- path: path + ".lib[" + index37655397582355143 + "]",
210
- expected: "string",
211
- value: elem
212
- });
213
- return success;
214
- })(); });
215
- if (success === false && exceptionable === true)
216
- throw new typescript_json_1.assertType.TypeGuardError({
217
- method: "assertType",
218
- path: path + ".lib",
219
- expected: "(Array<string}> | undefined)",
220
- value: input.lib
221
- });
222
- return success;
223
- })() && (function () {
224
- var success = undefined === input.locale || "string" === typeof input.locale;
225
- if (success === false && exceptionable === true)
226
- throw new typescript_json_1.assertType.TypeGuardError({
227
- method: "assertType",
228
- path: path + ".locale",
229
- expected: "(string | undefined)",
230
- value: input.locale
231
- });
232
- return success;
233
- })() && (function () {
234
- var success = undefined === input.mapRoot || "string" === typeof input.mapRoot;
235
- if (success === false && exceptionable === true)
236
- throw new typescript_json_1.assertType.TypeGuardError({
237
- method: "assertType",
238
- path: path + ".mapRoot",
239
- expected: "(string | undefined)",
240
- value: input.mapRoot
241
- });
242
- return success;
243
- })() && (function () {
244
- var success = undefined === input.maxNodeModuleJsDepth || "number" === typeof input.maxNodeModuleJsDepth && Number.isFinite(input.maxNodeModuleJsDepth) && !Number.isNaN(input.maxNodeModuleJsDepth);
245
- if (success === false && exceptionable === true)
246
- throw new typescript_json_1.assertType.TypeGuardError({
247
- method: "assertType",
248
- path: path + ".maxNodeModuleJsDepth",
249
- expected: "(number | undefined)",
250
- value: input.maxNodeModuleJsDepth
251
- });
252
- return success;
253
- })() && (undefined === input.module || 0 === input.module || 1 === input.module || 2 === input.module || 3 === input.module || 4 === input.module || 5 === input.module || 6 === input.module || 7 === input.module || 99 === input.module || 100 === input.module || 199 === input.module) && (undefined === input.moduleResolution || 1 === input.moduleResolution || 2 === input.moduleResolution || 3 === input.moduleResolution || 99 === input.moduleResolution) && (function () {
254
- var success = undefined === input.moduleSuffixes || Array.isArray(input.moduleSuffixes) && input.moduleSuffixes.every(function (elem, index3099216769909823) { return (function () {
255
- var success = "string" === typeof elem;
256
- if (success === false && exceptionable === true)
257
- throw new typescript_json_1.assertType.TypeGuardError({
258
- method: "assertType",
259
- path: path + ".moduleSuffixes[" + index3099216769909823 + "]",
260
- expected: "string",
261
- value: elem
262
- });
263
- return success;
264
- })(); });
265
- if (success === false && exceptionable === true)
266
- throw new typescript_json_1.assertType.TypeGuardError({
267
- method: "assertType",
268
- path: path + ".moduleSuffixes",
269
- expected: "(Array<string}> | undefined)",
270
- value: input.moduleSuffixes
271
- });
272
- return success;
273
- })() && (undefined === input.moduleDetection || 1 === input.moduleDetection || 2 === input.moduleDetection || 3 === input.moduleDetection) && (undefined === input.newLine || 0 === input.newLine || 1 === input.newLine) && (undefined === input.noEmit || false === input.noEmit || true === input.noEmit) && (undefined === input.noEmitHelpers || false === input.noEmitHelpers || true === input.noEmitHelpers) && (undefined === input.noEmitOnError || false === input.noEmitOnError || true === input.noEmitOnError) && (undefined === input.noErrorTruncation || false === input.noErrorTruncation || true === input.noErrorTruncation) && (undefined === input.noFallthroughCasesInSwitch || false === input.noFallthroughCasesInSwitch || true === input.noFallthroughCasesInSwitch) && (undefined === input.noImplicitAny || false === input.noImplicitAny || true === input.noImplicitAny) && (undefined === input.noImplicitReturns || false === input.noImplicitReturns || true === input.noImplicitReturns) && (undefined === input.noImplicitThis || false === input.noImplicitThis || true === input.noImplicitThis) && (undefined === input.noStrictGenericChecks || false === input.noStrictGenericChecks || true === input.noStrictGenericChecks) && (undefined === input.noUnusedLocals || false === input.noUnusedLocals || true === input.noUnusedLocals) && (undefined === input.noUnusedParameters || false === input.noUnusedParameters || true === input.noUnusedParameters) && (undefined === input.noImplicitUseStrict || false === input.noImplicitUseStrict || true === input.noImplicitUseStrict) && (undefined === input.noPropertyAccessFromIndexSignature || false === input.noPropertyAccessFromIndexSignature || true === input.noPropertyAccessFromIndexSignature) && (undefined === input.assumeChangesOnlyAffectDirectDependencies || false === input.assumeChangesOnlyAffectDirectDependencies || true === input.assumeChangesOnlyAffectDirectDependencies) && (undefined === input.noLib || false === input.noLib || true === input.noLib) && (undefined === input.noResolve || false === input.noResolve || true === input.noResolve) && (undefined === input.noUncheckedIndexedAccess || false === input.noUncheckedIndexedAccess || true === input.noUncheckedIndexedAccess) && (function () {
274
- var success = undefined === input.out || "string" === typeof input.out;
275
- if (success === false && exceptionable === true)
276
- throw new typescript_json_1.assertType.TypeGuardError({
277
- method: "assertType",
278
- path: path + ".out",
279
- expected: "(string | undefined)",
280
- value: input.out
281
- });
282
- return success;
283
- })() && (function () {
284
- var success = undefined === input.outDir || "string" === typeof input.outDir;
285
- if (success === false && exceptionable === true)
286
- throw new typescript_json_1.assertType.TypeGuardError({
287
- method: "assertType",
288
- path: path + ".outDir",
289
- expected: "(string | undefined)",
290
- value: input.outDir
291
- });
292
- return success;
293
- })() && (function () {
294
- var success = undefined === input.outFile || "string" === typeof input.outFile;
295
- if (success === false && exceptionable === true)
296
- throw new typescript_json_1.assertType.TypeGuardError({
297
- method: "assertType",
298
- path: path + ".outFile",
299
- expected: "(string | undefined)",
300
- value: input.outFile
301
- });
302
- return success;
303
- })() && (function () {
304
- var success = null !== input.paths && (undefined === input.paths || "object" === typeof input.paths && $ao[3](input.paths, path + ".paths", true && exceptionable));
305
- if (success === false && exceptionable === true)
306
- throw new typescript_json_1.assertType.TypeGuardError({
307
- method: "assertType",
308
- path: path + ".paths",
309
- expected: "(Resolve<ts.MapLike<Array<string>>> | undefined)",
310
- value: input.paths
311
- });
312
- return success;
313
- })() && (undefined === input.preserveConstEnums || false === input.preserveConstEnums || true === input.preserveConstEnums) && (undefined === input.noImplicitOverride || false === input.noImplicitOverride || true === input.noImplicitOverride) && (undefined === input.preserveSymlinks || false === input.preserveSymlinks || true === input.preserveSymlinks) && (undefined === input.preserveValueImports || false === input.preserveValueImports || true === input.preserveValueImports) && (function () {
314
- var success = undefined === input.project || "string" === typeof input.project;
315
- if (success === false && exceptionable === true)
316
- throw new typescript_json_1.assertType.TypeGuardError({
317
- method: "assertType",
318
- path: path + ".project",
319
- expected: "(string | undefined)",
320
- value: input.project
321
- });
322
- return success;
323
- })() && (function () {
324
- var success = undefined === input.reactNamespace || "string" === typeof input.reactNamespace;
325
- if (success === false && exceptionable === true)
326
- throw new typescript_json_1.assertType.TypeGuardError({
327
- method: "assertType",
328
- path: path + ".reactNamespace",
329
- expected: "(string | undefined)",
330
- value: input.reactNamespace
331
- });
332
- return success;
333
- })() && (function () {
334
- var success = undefined === input.jsxFactory || "string" === typeof input.jsxFactory;
335
- if (success === false && exceptionable === true)
336
- throw new typescript_json_1.assertType.TypeGuardError({
337
- method: "assertType",
338
- path: path + ".jsxFactory",
339
- expected: "(string | undefined)",
340
- value: input.jsxFactory
341
- });
342
- return success;
343
- })() && (function () {
344
- var success = undefined === input.jsxFragmentFactory || "string" === typeof input.jsxFragmentFactory;
345
- if (success === false && exceptionable === true)
346
- throw new typescript_json_1.assertType.TypeGuardError({
347
- method: "assertType",
348
- path: path + ".jsxFragmentFactory",
349
- expected: "(string | undefined)",
350
- value: input.jsxFragmentFactory
351
- });
352
- return success;
353
- })() && (function () {
354
- var success = undefined === input.jsxImportSource || "string" === typeof input.jsxImportSource;
355
- if (success === false && exceptionable === true)
356
- throw new typescript_json_1.assertType.TypeGuardError({
357
- method: "assertType",
358
- path: path + ".jsxImportSource",
359
- expected: "(string | undefined)",
360
- value: input.jsxImportSource
361
- });
362
- return success;
363
- })() && (undefined === input.composite || false === input.composite || true === input.composite) && (undefined === input.incremental || false === input.incremental || true === input.incremental) && (function () {
364
- var success = undefined === input.tsBuildInfoFile || "string" === typeof input.tsBuildInfoFile;
365
- if (success === false && exceptionable === true)
366
- throw new typescript_json_1.assertType.TypeGuardError({
367
- method: "assertType",
368
- path: path + ".tsBuildInfoFile",
369
- expected: "(string | undefined)",
370
- value: input.tsBuildInfoFile
371
- });
372
- return success;
373
- })() && (undefined === input.removeComments || false === input.removeComments || true === input.removeComments) && (function () {
374
- var success = undefined === input.rootDir || "string" === typeof input.rootDir;
375
- if (success === false && exceptionable === true)
376
- throw new typescript_json_1.assertType.TypeGuardError({
377
- method: "assertType",
378
- path: path + ".rootDir",
379
- expected: "(string | undefined)",
380
- value: input.rootDir
381
- });
382
- return success;
383
- })() && (function () {
384
- var success = undefined === input.rootDirs || Array.isArray(input.rootDirs) && input.rootDirs.every(function (elem, index9198562820846912) { return (function () {
385
- var success = "string" === typeof elem;
386
- if (success === false && exceptionable === true)
387
- throw new typescript_json_1.assertType.TypeGuardError({
388
- method: "assertType",
389
- path: path + ".rootDirs[" + index9198562820846912 + "]",
390
- expected: "string",
391
- value: elem
392
- });
393
- return success;
394
- })(); });
395
- if (success === false && exceptionable === true)
396
- throw new typescript_json_1.assertType.TypeGuardError({
397
- method: "assertType",
398
- path: path + ".rootDirs",
399
- expected: "(Array<string}> | undefined)",
400
- value: input.rootDirs
401
- });
402
- return success;
403
- })() && (undefined === input.skipLibCheck || false === input.skipLibCheck || true === input.skipLibCheck) && (undefined === input.skipDefaultLibCheck || false === input.skipDefaultLibCheck || true === input.skipDefaultLibCheck) && (undefined === input.sourceMap || false === input.sourceMap || true === input.sourceMap) && (function () {
404
- var success = undefined === input.sourceRoot || "string" === typeof input.sourceRoot;
405
- if (success === false && exceptionable === true)
406
- throw new typescript_json_1.assertType.TypeGuardError({
407
- method: "assertType",
408
- path: path + ".sourceRoot",
409
- expected: "(string | undefined)",
410
- value: input.sourceRoot
411
- });
412
- return success;
413
- })() && (undefined === input.strict || false === input.strict || true === input.strict) && (undefined === input.strictFunctionTypes || false === input.strictFunctionTypes || true === input.strictFunctionTypes) && (undefined === input.strictBindCallApply || false === input.strictBindCallApply || true === input.strictBindCallApply) && (undefined === input.strictNullChecks || false === input.strictNullChecks || true === input.strictNullChecks) && (undefined === input.strictPropertyInitialization || false === input.strictPropertyInitialization || true === input.strictPropertyInitialization) && (undefined === input.stripInternal || false === input.stripInternal || true === input.stripInternal) && (undefined === input.suppressExcessPropertyErrors || false === input.suppressExcessPropertyErrors || true === input.suppressExcessPropertyErrors) && (undefined === input.suppressImplicitAnyIndexErrors || false === input.suppressImplicitAnyIndexErrors || true === input.suppressImplicitAnyIndexErrors) && (undefined === input.target || 0 === input.target || 1 === input.target || 2 === input.target || 3 === input.target || 4 === input.target || 5 === input.target || 6 === input.target || 7 === input.target || 8 === input.target || 9 === input.target || 99 === input.target || 100 === input.target) && (undefined === input.traceResolution || false === input.traceResolution || true === input.traceResolution) && (undefined === input.useUnknownInCatchVariables || false === input.useUnknownInCatchVariables || true === input.useUnknownInCatchVariables) && (undefined === input.resolveJsonModule || false === input.resolveJsonModule || true === input.resolveJsonModule) && (function () {
414
- var success = undefined === input.types || Array.isArray(input.types) && input.types.every(function (elem, index16481406153916334) { return (function () {
415
- var success = "string" === typeof elem;
416
- if (success === false && exceptionable === true)
417
- throw new typescript_json_1.assertType.TypeGuardError({
418
- method: "assertType",
419
- path: path + ".types[" + index16481406153916334 + "]",
420
- expected: "string",
421
- value: elem
422
- });
423
- return success;
424
- })(); });
425
- if (success === false && exceptionable === true)
426
- throw new typescript_json_1.assertType.TypeGuardError({
427
- method: "assertType",
428
- path: path + ".types",
429
- expected: "(Array<string}> | undefined)",
430
- value: input.types
431
- });
432
- return success;
433
- })() && (function () {
434
- var success = undefined === input.typeRoots || Array.isArray(input.typeRoots) && input.typeRoots.every(function (elem, index2972702446049107) { return (function () {
435
- var success = "string" === typeof elem;
436
- if (success === false && exceptionable === true)
437
- throw new typescript_json_1.assertType.TypeGuardError({
438
- method: "assertType",
439
- path: path + ".typeRoots[" + index2972702446049107 + "]",
440
- expected: "string",
441
- value: elem
442
- });
443
- return success;
444
- })(); });
445
- if (success === false && exceptionable === true)
446
- throw new typescript_json_1.assertType.TypeGuardError({
447
- method: "assertType",
448
- path: path + ".typeRoots",
449
- expected: "(Array<string}> | undefined)",
450
- value: input.typeRoots
451
- });
452
- return success;
453
- })() && (undefined === input.esModuleInterop || false === input.esModuleInterop || true === input.esModuleInterop) && (undefined === input.useDefineForClassFields || false === input.useDefineForClassFields || true === input.useDefineForClassFields); },
454
- function (input, path, exceptionable) { return true; },
455
- function (input, path, exceptionable) { return (function () {
456
- var success = "string" === typeof input.output;
457
- if (success === false && exceptionable === true)
458
- throw new typescript_json_1.assertType.TypeGuardError({
459
- method: "assertType",
460
- path: path + ".output",
461
- expected: "string",
462
- value: input.output
463
- });
464
- return success;
465
- })(); }
466
- ];
467
- return (function () {
468
- var success = null !== input && (function () {
469
- var success = "object" === typeof input && $ao[0](input, path + "", true);
470
- if (success === false)
471
- throw new typescript_json_1.assertType.TypeGuardError({
472
- method: "assertType",
473
- path: path + "",
474
- expected: "Resolve<__type>",
475
- value: input
476
- });
477
- return success;
478
- })();
479
- if (success === false)
480
- throw new typescript_json_1.assertType.TypeGuardError({
481
- method: "assertType",
482
- path: path + "",
483
- expected: "Resolve<__type>",
484
- value: input
485
- });
486
- return success;
487
- })();
488
- })(input); return input; })(nestia_fetcher_1.Primitive.clone(config))];
489
- }
51
+ const singleton = new Singleton_1.Singleton(() => __awaiter(this, void 0, void 0, function* () {
52
+ if (fs_1.default.existsSync("nestia.config.ts") === false)
53
+ return null;
54
+ runner.register({
55
+ emit: false,
56
+ compilerOptions: {
57
+ noEmit: true,
58
+ },
490
59
  });
491
- }); });
60
+ const loaded = yield Promise.resolve().then(() => __importStar(require(path_1.default.resolve("nestia.config.ts"))));
61
+ if (typeof loaded !== "object")
62
+ throw new Error("Error on NestiaConfig.get(): failed to load data");
63
+ const config = typeof loaded.default === "object" ? loaded.default : loaded;
64
+ return (input => { ((input, path = "$input") => {
65
+ const $pred = typescript_json_1.assertType.predicate;
66
+ const $ao = [
67
+ (input, path, exceptionable) => null !== input.input && undefined !== input.input && ("string" === typeof input.input || Array.isArray(input.input) && input.input.every((elem, index72831205422291) => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $ao[1](input.input, path + ".input", false && exceptionable)) && $pred(undefined === input.output || "string" === typeof input.output, exceptionable, () => ({
68
+ path: path + ".output",
69
+ expected: "(string | undefined)",
70
+ value: input.output
71
+ })) && $pred(null !== input.compilerOptions && (undefined === input.compilerOptions || "object" === typeof input.compilerOptions && null !== input.compilerOptions && !Array.isArray(input.compilerOptions) && $ao[2](input.compilerOptions, path + ".compilerOptions", true && exceptionable)), exceptionable, () => ({
72
+ path: path + ".compilerOptions",
73
+ expected: "(Resolve<ts.CompilerOptions> | undefined)",
74
+ value: input.compilerOptions
75
+ })) && $pred(undefined === input.assert || "boolean" === typeof input.assert, exceptionable, () => ({
76
+ path: path + ".assert",
77
+ expected: "(boolean | undefined)",
78
+ value: input.assert
79
+ })) && $pred(undefined === input.json || "boolean" === typeof input.json, exceptionable, () => ({
80
+ path: path + ".json",
81
+ expected: "(boolean | undefined)",
82
+ value: input.json
83
+ })) && $pred(null !== input.swagger && (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && !Array.isArray(input.swagger) && $ao[4](input.swagger, path + ".swagger", true && exceptionable)), exceptionable, () => ({
84
+ path: path + ".swagger",
85
+ expected: "(Resolve<IConfiguration.ISwagger> | undefined)",
86
+ value: input.swagger
87
+ })),
88
+ (input, path, exceptionable) => $pred(Array.isArray(input.include) && input.include.every((elem, index9290776339282998) => $pred("string" === typeof elem, exceptionable, () => ({
89
+ path: path + ".include[" + index9290776339282998 + "]",
90
+ expected: "string",
91
+ value: elem
92
+ }))), exceptionable, () => ({
93
+ path: path + ".include",
94
+ expected: "Array<string>",
95
+ value: input.include
96
+ })) && $pred(undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every((elem, index787921144684733) => $pred("string" === typeof elem, exceptionable, () => ({
97
+ path: path + ".exclude[" + index787921144684733 + "]",
98
+ expected: "string",
99
+ value: elem
100
+ }))), exceptionable, () => ({
101
+ path: path + ".exclude",
102
+ expected: "(Array<string> | undefined)",
103
+ value: input.exclude
104
+ })),
105
+ (input, path, exceptionable) => $pred(undefined === input.allowJs || "boolean" === typeof input.allowJs, exceptionable, () => ({
106
+ path: path + ".allowJs",
107
+ expected: "(boolean | undefined)",
108
+ value: input.allowJs
109
+ })) && $pred(undefined === input.allowSyntheticDefaultImports || "boolean" === typeof input.allowSyntheticDefaultImports, exceptionable, () => ({
110
+ path: path + ".allowSyntheticDefaultImports",
111
+ expected: "(boolean | undefined)",
112
+ value: input.allowSyntheticDefaultImports
113
+ })) && $pred(undefined === input.allowUmdGlobalAccess || "boolean" === typeof input.allowUmdGlobalAccess, exceptionable, () => ({
114
+ path: path + ".allowUmdGlobalAccess",
115
+ expected: "(boolean | undefined)",
116
+ value: input.allowUmdGlobalAccess
117
+ })) && $pred(undefined === input.allowUnreachableCode || "boolean" === typeof input.allowUnreachableCode, exceptionable, () => ({
118
+ path: path + ".allowUnreachableCode",
119
+ expected: "(boolean | undefined)",
120
+ value: input.allowUnreachableCode
121
+ })) && $pred(undefined === input.allowUnusedLabels || "boolean" === typeof input.allowUnusedLabels, exceptionable, () => ({
122
+ path: path + ".allowUnusedLabels",
123
+ expected: "(boolean | undefined)",
124
+ value: input.allowUnusedLabels
125
+ })) && $pred(undefined === input.alwaysStrict || "boolean" === typeof input.alwaysStrict, exceptionable, () => ({
126
+ path: path + ".alwaysStrict",
127
+ expected: "(boolean | undefined)",
128
+ value: input.alwaysStrict
129
+ })) && $pred(undefined === input.baseUrl || "string" === typeof input.baseUrl, exceptionable, () => ({
130
+ path: path + ".baseUrl",
131
+ expected: "(string | undefined)",
132
+ value: input.baseUrl
133
+ })) && $pred(undefined === input.charset || "string" === typeof input.charset, exceptionable, () => ({
134
+ path: path + ".charset",
135
+ expected: "(string | undefined)",
136
+ value: input.charset
137
+ })) && $pred(undefined === input.checkJs || "boolean" === typeof input.checkJs, exceptionable, () => ({
138
+ path: path + ".checkJs",
139
+ expected: "(boolean | undefined)",
140
+ value: input.checkJs
141
+ })) && $pred(undefined === input.declaration || "boolean" === typeof input.declaration, exceptionable, () => ({
142
+ path: path + ".declaration",
143
+ expected: "(boolean | undefined)",
144
+ value: input.declaration
145
+ })) && $pred(undefined === input.declarationMap || "boolean" === typeof input.declarationMap, exceptionable, () => ({
146
+ path: path + ".declarationMap",
147
+ expected: "(boolean | undefined)",
148
+ value: input.declarationMap
149
+ })) && $pred(undefined === input.emitDeclarationOnly || "boolean" === typeof input.emitDeclarationOnly, exceptionable, () => ({
150
+ path: path + ".emitDeclarationOnly",
151
+ expected: "(boolean | undefined)",
152
+ value: input.emitDeclarationOnly
153
+ })) && $pred(undefined === input.declarationDir || "string" === typeof input.declarationDir, exceptionable, () => ({
154
+ path: path + ".declarationDir",
155
+ expected: "(string | undefined)",
156
+ value: input.declarationDir
157
+ })) && $pred(undefined === input.disableSizeLimit || "boolean" === typeof input.disableSizeLimit, exceptionable, () => ({
158
+ path: path + ".disableSizeLimit",
159
+ expected: "(boolean | undefined)",
160
+ value: input.disableSizeLimit
161
+ })) && $pred(undefined === input.disableSourceOfProjectReferenceRedirect || "boolean" === typeof input.disableSourceOfProjectReferenceRedirect, exceptionable, () => ({
162
+ path: path + ".disableSourceOfProjectReferenceRedirect",
163
+ expected: "(boolean | undefined)",
164
+ value: input.disableSourceOfProjectReferenceRedirect
165
+ })) && $pred(undefined === input.disableSolutionSearching || "boolean" === typeof input.disableSolutionSearching, exceptionable, () => ({
166
+ path: path + ".disableSolutionSearching",
167
+ expected: "(boolean | undefined)",
168
+ value: input.disableSolutionSearching
169
+ })) && $pred(undefined === input.disableReferencedProjectLoad || "boolean" === typeof input.disableReferencedProjectLoad, exceptionable, () => ({
170
+ path: path + ".disableReferencedProjectLoad",
171
+ expected: "(boolean | undefined)",
172
+ value: input.disableReferencedProjectLoad
173
+ })) && $pred(undefined === input.downlevelIteration || "boolean" === typeof input.downlevelIteration, exceptionable, () => ({
174
+ path: path + ".downlevelIteration",
175
+ expected: "(boolean | undefined)",
176
+ value: input.downlevelIteration
177
+ })) && $pred(undefined === input.emitBOM || "boolean" === typeof input.emitBOM, exceptionable, () => ({
178
+ path: path + ".emitBOM",
179
+ expected: "(boolean | undefined)",
180
+ value: input.emitBOM
181
+ })) && $pred(undefined === input.emitDecoratorMetadata || "boolean" === typeof input.emitDecoratorMetadata, exceptionable, () => ({
182
+ path: path + ".emitDecoratorMetadata",
183
+ expected: "(boolean | undefined)",
184
+ value: input.emitDecoratorMetadata
185
+ })) && $pred(undefined === input.exactOptionalPropertyTypes || "boolean" === typeof input.exactOptionalPropertyTypes, exceptionable, () => ({
186
+ path: path + ".exactOptionalPropertyTypes",
187
+ expected: "(boolean | undefined)",
188
+ value: input.exactOptionalPropertyTypes
189
+ })) && $pred(undefined === input.experimentalDecorators || "boolean" === typeof input.experimentalDecorators, exceptionable, () => ({
190
+ path: path + ".experimentalDecorators",
191
+ expected: "(boolean | undefined)",
192
+ value: input.experimentalDecorators
193
+ })) && $pred(undefined === input.forceConsistentCasingInFileNames || "boolean" === typeof input.forceConsistentCasingInFileNames, exceptionable, () => ({
194
+ path: path + ".forceConsistentCasingInFileNames",
195
+ expected: "(boolean | undefined)",
196
+ value: input.forceConsistentCasingInFileNames
197
+ })) && $pred(undefined === input.importHelpers || "boolean" === typeof input.importHelpers, exceptionable, () => ({
198
+ path: path + ".importHelpers",
199
+ expected: "(boolean | undefined)",
200
+ value: input.importHelpers
201
+ })) && (undefined === input.importsNotUsedAsValues || 0 === input.importsNotUsedAsValues || 1 === input.importsNotUsedAsValues || 2 === input.importsNotUsedAsValues) && $pred(undefined === input.inlineSourceMap || "boolean" === typeof input.inlineSourceMap, exceptionable, () => ({
202
+ path: path + ".inlineSourceMap",
203
+ expected: "(boolean | undefined)",
204
+ value: input.inlineSourceMap
205
+ })) && $pred(undefined === input.inlineSources || "boolean" === typeof input.inlineSources, exceptionable, () => ({
206
+ path: path + ".inlineSources",
207
+ expected: "(boolean | undefined)",
208
+ value: input.inlineSources
209
+ })) && $pred(undefined === input.isolatedModules || "boolean" === typeof input.isolatedModules, exceptionable, () => ({
210
+ path: path + ".isolatedModules",
211
+ expected: "(boolean | undefined)",
212
+ value: input.isolatedModules
213
+ })) && (undefined === input.jsx || 0 === input.jsx || 1 === input.jsx || 2 === input.jsx || 3 === input.jsx || 4 === input.jsx || 5 === input.jsx) && $pred(undefined === input.keyofStringsOnly || "boolean" === typeof input.keyofStringsOnly, exceptionable, () => ({
214
+ path: path + ".keyofStringsOnly",
215
+ expected: "(boolean | undefined)",
216
+ value: input.keyofStringsOnly
217
+ })) && $pred(undefined === input.lib || Array.isArray(input.lib) && input.lib.every((elem, index9082729578544395) => $pred("string" === typeof elem, exceptionable, () => ({
218
+ path: path + ".lib[" + index9082729578544395 + "]",
219
+ expected: "string",
220
+ value: elem
221
+ }))), exceptionable, () => ({
222
+ path: path + ".lib",
223
+ expected: "(Array<string> | undefined)",
224
+ value: input.lib
225
+ })) && $pred(undefined === input.locale || "string" === typeof input.locale, exceptionable, () => ({
226
+ path: path + ".locale",
227
+ expected: "(string | undefined)",
228
+ value: input.locale
229
+ })) && $pred(undefined === input.mapRoot || "string" === typeof input.mapRoot, exceptionable, () => ({
230
+ path: path + ".mapRoot",
231
+ expected: "(string | undefined)",
232
+ value: input.mapRoot
233
+ })) && $pred(undefined === input.maxNodeModuleJsDepth || "number" === typeof input.maxNodeModuleJsDepth && Number.isFinite(input.maxNodeModuleJsDepth) && !Number.isNaN(input.maxNodeModuleJsDepth), exceptionable, () => ({
234
+ path: path + ".maxNodeModuleJsDepth",
235
+ expected: "(number | undefined)",
236
+ value: input.maxNodeModuleJsDepth
237
+ })) && (undefined === input.module || 0 === input.module || 1 === input.module || 2 === input.module || 3 === input.module || 4 === input.module || 5 === input.module || 6 === input.module || 7 === input.module || 99 === input.module || 100 === input.module || 199 === input.module) && (undefined === input.moduleResolution || 1 === input.moduleResolution || 2 === input.moduleResolution || 3 === input.moduleResolution || 99 === input.moduleResolution) && $pred(undefined === input.moduleSuffixes || Array.isArray(input.moduleSuffixes) && input.moduleSuffixes.every((elem, index57463272761846) => $pred("string" === typeof elem, exceptionable, () => ({
238
+ path: path + ".moduleSuffixes[" + index57463272761846 + "]",
239
+ expected: "string",
240
+ value: elem
241
+ }))), exceptionable, () => ({
242
+ path: path + ".moduleSuffixes",
243
+ expected: "(Array<string> | undefined)",
244
+ value: input.moduleSuffixes
245
+ })) && (undefined === input.moduleDetection || 1 === input.moduleDetection || 2 === input.moduleDetection || 3 === input.moduleDetection) && (undefined === input.newLine || 0 === input.newLine || 1 === input.newLine) && $pred(undefined === input.noEmit || "boolean" === typeof input.noEmit, exceptionable, () => ({
246
+ path: path + ".noEmit",
247
+ expected: "(boolean | undefined)",
248
+ value: input.noEmit
249
+ })) && $pred(undefined === input.noEmitHelpers || "boolean" === typeof input.noEmitHelpers, exceptionable, () => ({
250
+ path: path + ".noEmitHelpers",
251
+ expected: "(boolean | undefined)",
252
+ value: input.noEmitHelpers
253
+ })) && $pred(undefined === input.noEmitOnError || "boolean" === typeof input.noEmitOnError, exceptionable, () => ({
254
+ path: path + ".noEmitOnError",
255
+ expected: "(boolean | undefined)",
256
+ value: input.noEmitOnError
257
+ })) && $pred(undefined === input.noErrorTruncation || "boolean" === typeof input.noErrorTruncation, exceptionable, () => ({
258
+ path: path + ".noErrorTruncation",
259
+ expected: "(boolean | undefined)",
260
+ value: input.noErrorTruncation
261
+ })) && $pred(undefined === input.noFallthroughCasesInSwitch || "boolean" === typeof input.noFallthroughCasesInSwitch, exceptionable, () => ({
262
+ path: path + ".noFallthroughCasesInSwitch",
263
+ expected: "(boolean | undefined)",
264
+ value: input.noFallthroughCasesInSwitch
265
+ })) && $pred(undefined === input.noImplicitAny || "boolean" === typeof input.noImplicitAny, exceptionable, () => ({
266
+ path: path + ".noImplicitAny",
267
+ expected: "(boolean | undefined)",
268
+ value: input.noImplicitAny
269
+ })) && $pred(undefined === input.noImplicitReturns || "boolean" === typeof input.noImplicitReturns, exceptionable, () => ({
270
+ path: path + ".noImplicitReturns",
271
+ expected: "(boolean | undefined)",
272
+ value: input.noImplicitReturns
273
+ })) && $pred(undefined === input.noImplicitThis || "boolean" === typeof input.noImplicitThis, exceptionable, () => ({
274
+ path: path + ".noImplicitThis",
275
+ expected: "(boolean | undefined)",
276
+ value: input.noImplicitThis
277
+ })) && $pred(undefined === input.noStrictGenericChecks || "boolean" === typeof input.noStrictGenericChecks, exceptionable, () => ({
278
+ path: path + ".noStrictGenericChecks",
279
+ expected: "(boolean | undefined)",
280
+ value: input.noStrictGenericChecks
281
+ })) && $pred(undefined === input.noUnusedLocals || "boolean" === typeof input.noUnusedLocals, exceptionable, () => ({
282
+ path: path + ".noUnusedLocals",
283
+ expected: "(boolean | undefined)",
284
+ value: input.noUnusedLocals
285
+ })) && $pred(undefined === input.noUnusedParameters || "boolean" === typeof input.noUnusedParameters, exceptionable, () => ({
286
+ path: path + ".noUnusedParameters",
287
+ expected: "(boolean | undefined)",
288
+ value: input.noUnusedParameters
289
+ })) && $pred(undefined === input.noImplicitUseStrict || "boolean" === typeof input.noImplicitUseStrict, exceptionable, () => ({
290
+ path: path + ".noImplicitUseStrict",
291
+ expected: "(boolean | undefined)",
292
+ value: input.noImplicitUseStrict
293
+ })) && $pred(undefined === input.noPropertyAccessFromIndexSignature || "boolean" === typeof input.noPropertyAccessFromIndexSignature, exceptionable, () => ({
294
+ path: path + ".noPropertyAccessFromIndexSignature",
295
+ expected: "(boolean | undefined)",
296
+ value: input.noPropertyAccessFromIndexSignature
297
+ })) && $pred(undefined === input.assumeChangesOnlyAffectDirectDependencies || "boolean" === typeof input.assumeChangesOnlyAffectDirectDependencies, exceptionable, () => ({
298
+ path: path + ".assumeChangesOnlyAffectDirectDependencies",
299
+ expected: "(boolean | undefined)",
300
+ value: input.assumeChangesOnlyAffectDirectDependencies
301
+ })) && $pred(undefined === input.noLib || "boolean" === typeof input.noLib, exceptionable, () => ({
302
+ path: path + ".noLib",
303
+ expected: "(boolean | undefined)",
304
+ value: input.noLib
305
+ })) && $pred(undefined === input.noResolve || "boolean" === typeof input.noResolve, exceptionable, () => ({
306
+ path: path + ".noResolve",
307
+ expected: "(boolean | undefined)",
308
+ value: input.noResolve
309
+ })) && $pred(undefined === input.noUncheckedIndexedAccess || "boolean" === typeof input.noUncheckedIndexedAccess, exceptionable, () => ({
310
+ path: path + ".noUncheckedIndexedAccess",
311
+ expected: "(boolean | undefined)",
312
+ value: input.noUncheckedIndexedAccess
313
+ })) && $pred(undefined === input.out || "string" === typeof input.out, exceptionable, () => ({
314
+ path: path + ".out",
315
+ expected: "(string | undefined)",
316
+ value: input.out
317
+ })) && $pred(undefined === input.outDir || "string" === typeof input.outDir, exceptionable, () => ({
318
+ path: path + ".outDir",
319
+ expected: "(string | undefined)",
320
+ value: input.outDir
321
+ })) && $pred(undefined === input.outFile || "string" === typeof input.outFile, exceptionable, () => ({
322
+ path: path + ".outFile",
323
+ expected: "(string | undefined)",
324
+ value: input.outFile
325
+ })) && $pred(null !== input.paths && (undefined === input.paths || "object" === typeof input.paths && null !== input.paths && !Array.isArray(input.paths) && $ao[3](input.paths, path + ".paths", true && exceptionable)), exceptionable, () => ({
326
+ path: path + ".paths",
327
+ expected: "(Resolve<ts.MapLike<Array<string>>> | undefined)",
328
+ value: input.paths
329
+ })) && $pred(undefined === input.preserveConstEnums || "boolean" === typeof input.preserveConstEnums, exceptionable, () => ({
330
+ path: path + ".preserveConstEnums",
331
+ expected: "(boolean | undefined)",
332
+ value: input.preserveConstEnums
333
+ })) && $pred(undefined === input.noImplicitOverride || "boolean" === typeof input.noImplicitOverride, exceptionable, () => ({
334
+ path: path + ".noImplicitOverride",
335
+ expected: "(boolean | undefined)",
336
+ value: input.noImplicitOverride
337
+ })) && $pred(undefined === input.preserveSymlinks || "boolean" === typeof input.preserveSymlinks, exceptionable, () => ({
338
+ path: path + ".preserveSymlinks",
339
+ expected: "(boolean | undefined)",
340
+ value: input.preserveSymlinks
341
+ })) && $pred(undefined === input.preserveValueImports || "boolean" === typeof input.preserveValueImports, exceptionable, () => ({
342
+ path: path + ".preserveValueImports",
343
+ expected: "(boolean | undefined)",
344
+ value: input.preserveValueImports
345
+ })) && $pred(undefined === input.project || "string" === typeof input.project, exceptionable, () => ({
346
+ path: path + ".project",
347
+ expected: "(string | undefined)",
348
+ value: input.project
349
+ })) && $pred(undefined === input.reactNamespace || "string" === typeof input.reactNamespace, exceptionable, () => ({
350
+ path: path + ".reactNamespace",
351
+ expected: "(string | undefined)",
352
+ value: input.reactNamespace
353
+ })) && $pred(undefined === input.jsxFactory || "string" === typeof input.jsxFactory, exceptionable, () => ({
354
+ path: path + ".jsxFactory",
355
+ expected: "(string | undefined)",
356
+ value: input.jsxFactory
357
+ })) && $pred(undefined === input.jsxFragmentFactory || "string" === typeof input.jsxFragmentFactory, exceptionable, () => ({
358
+ path: path + ".jsxFragmentFactory",
359
+ expected: "(string | undefined)",
360
+ value: input.jsxFragmentFactory
361
+ })) && $pred(undefined === input.jsxImportSource || "string" === typeof input.jsxImportSource, exceptionable, () => ({
362
+ path: path + ".jsxImportSource",
363
+ expected: "(string | undefined)",
364
+ value: input.jsxImportSource
365
+ })) && $pred(undefined === input.composite || "boolean" === typeof input.composite, exceptionable, () => ({
366
+ path: path + ".composite",
367
+ expected: "(boolean | undefined)",
368
+ value: input.composite
369
+ })) && $pred(undefined === input.incremental || "boolean" === typeof input.incremental, exceptionable, () => ({
370
+ path: path + ".incremental",
371
+ expected: "(boolean | undefined)",
372
+ value: input.incremental
373
+ })) && $pred(undefined === input.tsBuildInfoFile || "string" === typeof input.tsBuildInfoFile, exceptionable, () => ({
374
+ path: path + ".tsBuildInfoFile",
375
+ expected: "(string | undefined)",
376
+ value: input.tsBuildInfoFile
377
+ })) && $pred(undefined === input.removeComments || "boolean" === typeof input.removeComments, exceptionable, () => ({
378
+ path: path + ".removeComments",
379
+ expected: "(boolean | undefined)",
380
+ value: input.removeComments
381
+ })) && $pred(undefined === input.rootDir || "string" === typeof input.rootDir, exceptionable, () => ({
382
+ path: path + ".rootDir",
383
+ expected: "(string | undefined)",
384
+ value: input.rootDir
385
+ })) && $pred(undefined === input.rootDirs || Array.isArray(input.rootDirs) && input.rootDirs.every((elem, index7725261144147055) => $pred("string" === typeof elem, exceptionable, () => ({
386
+ path: path + ".rootDirs[" + index7725261144147055 + "]",
387
+ expected: "string",
388
+ value: elem
389
+ }))), exceptionable, () => ({
390
+ path: path + ".rootDirs",
391
+ expected: "(Array<string> | undefined)",
392
+ value: input.rootDirs
393
+ })) && $pred(undefined === input.skipLibCheck || "boolean" === typeof input.skipLibCheck, exceptionable, () => ({
394
+ path: path + ".skipLibCheck",
395
+ expected: "(boolean | undefined)",
396
+ value: input.skipLibCheck
397
+ })) && $pred(undefined === input.skipDefaultLibCheck || "boolean" === typeof input.skipDefaultLibCheck, exceptionable, () => ({
398
+ path: path + ".skipDefaultLibCheck",
399
+ expected: "(boolean | undefined)",
400
+ value: input.skipDefaultLibCheck
401
+ })) && $pred(undefined === input.sourceMap || "boolean" === typeof input.sourceMap, exceptionable, () => ({
402
+ path: path + ".sourceMap",
403
+ expected: "(boolean | undefined)",
404
+ value: input.sourceMap
405
+ })) && $pred(undefined === input.sourceRoot || "string" === typeof input.sourceRoot, exceptionable, () => ({
406
+ path: path + ".sourceRoot",
407
+ expected: "(string | undefined)",
408
+ value: input.sourceRoot
409
+ })) && $pred(undefined === input.strict || "boolean" === typeof input.strict, exceptionable, () => ({
410
+ path: path + ".strict",
411
+ expected: "(boolean | undefined)",
412
+ value: input.strict
413
+ })) && $pred(undefined === input.strictFunctionTypes || "boolean" === typeof input.strictFunctionTypes, exceptionable, () => ({
414
+ path: path + ".strictFunctionTypes",
415
+ expected: "(boolean | undefined)",
416
+ value: input.strictFunctionTypes
417
+ })) && $pred(undefined === input.strictBindCallApply || "boolean" === typeof input.strictBindCallApply, exceptionable, () => ({
418
+ path: path + ".strictBindCallApply",
419
+ expected: "(boolean | undefined)",
420
+ value: input.strictBindCallApply
421
+ })) && $pred(undefined === input.strictNullChecks || "boolean" === typeof input.strictNullChecks, exceptionable, () => ({
422
+ path: path + ".strictNullChecks",
423
+ expected: "(boolean | undefined)",
424
+ value: input.strictNullChecks
425
+ })) && $pred(undefined === input.strictPropertyInitialization || "boolean" === typeof input.strictPropertyInitialization, exceptionable, () => ({
426
+ path: path + ".strictPropertyInitialization",
427
+ expected: "(boolean | undefined)",
428
+ value: input.strictPropertyInitialization
429
+ })) && $pred(undefined === input.stripInternal || "boolean" === typeof input.stripInternal, exceptionable, () => ({
430
+ path: path + ".stripInternal",
431
+ expected: "(boolean | undefined)",
432
+ value: input.stripInternal
433
+ })) && $pred(undefined === input.suppressExcessPropertyErrors || "boolean" === typeof input.suppressExcessPropertyErrors, exceptionable, () => ({
434
+ path: path + ".suppressExcessPropertyErrors",
435
+ expected: "(boolean | undefined)",
436
+ value: input.suppressExcessPropertyErrors
437
+ })) && $pred(undefined === input.suppressImplicitAnyIndexErrors || "boolean" === typeof input.suppressImplicitAnyIndexErrors, exceptionable, () => ({
438
+ path: path + ".suppressImplicitAnyIndexErrors",
439
+ expected: "(boolean | undefined)",
440
+ value: input.suppressImplicitAnyIndexErrors
441
+ })) && (undefined === input.target || 0 === input.target || 1 === input.target || 2 === input.target || 3 === input.target || 4 === input.target || 5 === input.target || 6 === input.target || 7 === input.target || 8 === input.target || 9 === input.target || 99 === input.target || 100 === input.target) && $pred(undefined === input.traceResolution || "boolean" === typeof input.traceResolution, exceptionable, () => ({
442
+ path: path + ".traceResolution",
443
+ expected: "(boolean | undefined)",
444
+ value: input.traceResolution
445
+ })) && $pred(undefined === input.useUnknownInCatchVariables || "boolean" === typeof input.useUnknownInCatchVariables, exceptionable, () => ({
446
+ path: path + ".useUnknownInCatchVariables",
447
+ expected: "(boolean | undefined)",
448
+ value: input.useUnknownInCatchVariables
449
+ })) && $pred(undefined === input.resolveJsonModule || "boolean" === typeof input.resolveJsonModule, exceptionable, () => ({
450
+ path: path + ".resolveJsonModule",
451
+ expected: "(boolean | undefined)",
452
+ value: input.resolveJsonModule
453
+ })) && $pred(undefined === input.types || Array.isArray(input.types) && input.types.every((elem, index8758362191320128) => $pred("string" === typeof elem, exceptionable, () => ({
454
+ path: path + ".types[" + index8758362191320128 + "]",
455
+ expected: "string",
456
+ value: elem
457
+ }))), exceptionable, () => ({
458
+ path: path + ".types",
459
+ expected: "(Array<string> | undefined)",
460
+ value: input.types
461
+ })) && $pred(undefined === input.typeRoots || Array.isArray(input.typeRoots) && input.typeRoots.every((elem, index7475471024766156) => $pred("string" === typeof elem, exceptionable, () => ({
462
+ path: path + ".typeRoots[" + index7475471024766156 + "]",
463
+ expected: "string",
464
+ value: elem
465
+ }))), exceptionable, () => ({
466
+ path: path + ".typeRoots",
467
+ expected: "(Array<string> | undefined)",
468
+ value: input.typeRoots
469
+ })) && $pred(undefined === input.esModuleInterop || "boolean" === typeof input.esModuleInterop, exceptionable, () => ({
470
+ path: path + ".esModuleInterop",
471
+ expected: "(boolean | undefined)",
472
+ value: input.esModuleInterop
473
+ })) && $pred(undefined === input.useDefineForClassFields || "boolean" === typeof input.useDefineForClassFields, exceptionable, () => ({
474
+ path: path + ".useDefineForClassFields",
475
+ expected: "(boolean | undefined)",
476
+ value: input.useDefineForClassFields
477
+ })),
478
+ (input, path, exceptionable) => true,
479
+ (input, path, exceptionable) => $pred("string" === typeof input.output, exceptionable, () => ({
480
+ path: path + ".output",
481
+ expected: "string",
482
+ value: input.output
483
+ }))
484
+ ];
485
+ return $pred(null !== input && $pred("object" === typeof input && null !== input && !Array.isArray(input) && $ao[0](input, path + "", true), true, () => ({
486
+ path: path + "",
487
+ expected: "Resolve<__type>",
488
+ value: input
489
+ })), true, () => ({
490
+ path: path + "",
491
+ expected: "Resolve<__type>",
492
+ value: input
493
+ }));
494
+ })(input); return input; })(nestia_fetcher_1.Primitive.clone(config));
495
+ }));
492
496
  })(NestiaConfig = exports.NestiaConfig || (exports.NestiaConfig = {}));
493
497
  //# sourceMappingURL=NestiaConfig.js.map