nestia 3.0.15 → 3.0.16-dev.20220930

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 (64) hide show
  1. package/lib/IConfiguration.d.ts +110 -110
  2. package/lib/IConfiguration.js +2 -2
  3. package/lib/NestiaApplication.d.ts +11 -11
  4. package/lib/NestiaApplication.js +155 -155
  5. package/lib/analyses/ControllerAnalyzer.d.ts +6 -6
  6. package/lib/analyses/ControllerAnalyzer.js +105 -105
  7. package/lib/analyses/GenericAnalyzer.d.ts +5 -5
  8. package/lib/analyses/GenericAnalyzer.js +40 -40
  9. package/lib/analyses/ImportAnalyzer.d.ts +13 -13
  10. package/lib/analyses/ImportAnalyzer.js +83 -83
  11. package/lib/analyses/PathAnalyzer.d.ts +5 -5
  12. package/lib/analyses/PathAnalyzer.js +50 -50
  13. package/lib/analyses/ReflectAnalyzer.d.ts +4 -4
  14. package/lib/analyses/ReflectAnalyzer.js +229 -229
  15. package/lib/analyses/SourceFinder.d.ts +4 -4
  16. package/lib/analyses/SourceFinder.js +69 -69
  17. package/lib/executable/internal/CompilerOptions.d.ts +11 -11
  18. package/lib/executable/internal/CompilerOptions.js +17 -17
  19. package/lib/executable/internal/NestiaCommand.d.ts +4 -4
  20. package/lib/executable/internal/NestiaCommand.js +127 -127
  21. package/lib/executable/internal/NestiaConfig.d.ts +4 -4
  22. package/lib/executable/internal/NestiaConfig.js +521 -521
  23. package/lib/executable/internal/nestia.config.getter.d.ts +1 -1
  24. package/lib/executable/internal/nestia.config.getter.js +23 -23
  25. package/lib/executable/nestia.d.ts +2 -2
  26. package/lib/executable/nestia.js +54 -54
  27. package/lib/generates/FileGenerator.d.ts +5 -5
  28. package/lib/generates/FileGenerator.js +136 -136
  29. package/lib/generates/FunctionGenerator.d.ts +5 -5
  30. package/lib/generates/FunctionGenerator.js +203 -203
  31. package/lib/generates/SdkGenerator.d.ts +7 -7
  32. package/lib/generates/SdkGenerator.js +46 -46
  33. package/lib/generates/SwaggerGenerator.d.ts +6 -6
  34. package/lib/generates/SwaggerGenerator.js +235 -235
  35. package/lib/index.d.ts +2 -2
  36. package/lib/index.js +27 -27
  37. package/lib/module.d.ts +2 -2
  38. package/lib/module.js +18 -18
  39. package/lib/structures/IController.d.ts +23 -23
  40. package/lib/structures/IController.js +2 -2
  41. package/lib/structures/IRoute.d.ts +24 -24
  42. package/lib/structures/IRoute.js +2 -2
  43. package/lib/structures/ISwagger.d.ts +48 -48
  44. package/lib/structures/ISwagger.js +2 -2
  45. package/lib/structures/ITypeTuple.d.ts +5 -5
  46. package/lib/structures/ITypeTuple.js +2 -2
  47. package/lib/structures/MethodType.d.ts +4 -4
  48. package/lib/structures/MethodType.js +13 -13
  49. package/lib/structures/ParamCategory.d.ts +1 -1
  50. package/lib/structures/ParamCategory.js +2 -2
  51. package/lib/structures/TypeEntry.d.ts +9 -9
  52. package/lib/structures/TypeEntry.js +20 -20
  53. package/lib/utils/ArrayUtil.d.ts +5 -5
  54. package/lib/utils/ArrayUtil.js +38 -38
  55. package/lib/utils/DirectoryUtil.d.ts +5 -5
  56. package/lib/utils/DirectoryUtil.js +61 -61
  57. package/lib/utils/ImportDictionary.d.ts +6 -6
  58. package/lib/utils/ImportDictionary.js +49 -49
  59. package/lib/utils/MapUtil.d.ts +3 -3
  60. package/lib/utils/MapUtil.js +15 -15
  61. package/lib/utils/StripEnums.d.ts +3 -3
  62. package/lib/utils/StripEnums.js +2 -2
  63. package/package.json +1 -1
  64. package/preliminaries/nestia.config.ts +70 -70
@@ -1,522 +1,522 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.NestiaConfig = void 0;
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");
45
- var NestiaConfig;
46
- (function (NestiaConfig) {
47
- function get() {
48
- return singleton.get();
49
- }
50
- NestiaConfig.get = get;
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
- module: "CommonJS",
58
- noEmit: true,
59
- },
60
- });
61
- const loaded = yield Promise.resolve().then(() => __importStar(require(path_1.default.resolve("nestia.config.ts"))));
62
- if (typeof loaded !== "object")
63
- throw new Error("Error on NestiaConfig.get(): failed to load data");
64
- const config = typeof loaded.default === "object" ? loaded.default : loaded;
65
- return (input => { ((input, path = "$input") => {
66
- const $predicate = typescript_json_1.assertType.predicate;
67
- const $ao = [
68
- (input, path, exceptionable) => $predicate(null !== input.input && undefined !== input.input && $predicate("string" === typeof input.input || Array.isArray(input.input) && input.input.every((elem, index1) => $predicate("string" === typeof elem, exceptionable, () => ({
69
- path: path + ".input[" + index1 + "]",
70
- expected: "string",
71
- value: elem
72
- }))) || "object" === typeof input.input && null !== input.input && $ao[1](input.input, path + ".input", true && exceptionable), exceptionable, () => ({
73
- path: path + ".input",
74
- expected: "(Array<string> | Resolve<IConfiguration.IInput> | string)",
75
- value: input.input
76
- })), exceptionable, () => ({
77
- path: path + ".input",
78
- expected: "(Array<string> | Resolve<IConfiguration.IInput> | string)",
79
- value: input.input
80
- })) && $predicate(undefined === input.output || "string" === typeof input.output, exceptionable, () => ({
81
- path: path + ".output",
82
- expected: "(string | undefined)",
83
- value: input.output
84
- })) && $predicate(null !== input.compilerOptions && $predicate(undefined === input.compilerOptions || "object" === typeof input.compilerOptions && null !== input.compilerOptions && $ao[2](input.compilerOptions, path + ".compilerOptions", true && exceptionable), exceptionable, () => ({
85
- path: path + ".compilerOptions",
86
- expected: "(Resolve<__type.o1> | undefined)",
87
- value: input.compilerOptions
88
- })), exceptionable, () => ({
89
- path: path + ".compilerOptions",
90
- expected: "(Resolve<__type.o1> | undefined)",
91
- value: input.compilerOptions
92
- })) && $predicate(undefined === input.assert || "boolean" === typeof input.assert, exceptionable, () => ({
93
- path: path + ".assert",
94
- expected: "(boolean | undefined)",
95
- value: input.assert
96
- })) && $predicate(undefined === input.json || "boolean" === typeof input.json, exceptionable, () => ({
97
- path: path + ".json",
98
- expected: "(boolean | undefined)",
99
- value: input.json
100
- })) && $predicate(undefined === input.primitive || "boolean" === typeof input.primitive, exceptionable, () => ({
101
- path: path + ".primitive",
102
- expected: "(boolean | undefined)",
103
- value: input.primitive
104
- })) && $predicate(null !== input.swagger && $predicate(undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $ao[4](input.swagger, path + ".swagger", true && exceptionable), exceptionable, () => ({
105
- path: path + ".swagger",
106
- expected: "(Resolve<IConfiguration.ISwagger> | undefined)",
107
- value: input.swagger
108
- })), exceptionable, () => ({
109
- path: path + ".swagger",
110
- expected: "(Resolve<IConfiguration.ISwagger> | undefined)",
111
- value: input.swagger
112
- })),
113
- (input, path, exceptionable) => $predicate(Array.isArray(input.include) && input.include.every((elem, index2) => $predicate("string" === typeof elem, exceptionable, () => ({
114
- path: path + ".include[" + index2 + "]",
115
- expected: "string",
116
- value: elem
117
- }))), exceptionable, () => ({
118
- path: path + ".include",
119
- expected: "Array<string>",
120
- value: input.include
121
- })) && $predicate(undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every((elem, index3) => $predicate("string" === typeof elem, exceptionable, () => ({
122
- path: path + ".exclude[" + index3 + "]",
123
- expected: "string",
124
- value: elem
125
- }))), exceptionable, () => ({
126
- path: path + ".exclude",
127
- expected: "(Array<string> | undefined)",
128
- value: input.exclude
129
- })),
130
- (input, path, exceptionable) => $predicate(undefined === input.allowJs || "boolean" === typeof input.allowJs, exceptionable, () => ({
131
- path: path + ".allowJs",
132
- expected: "(boolean | undefined)",
133
- value: input.allowJs
134
- })) && $predicate(undefined === input.allowSyntheticDefaultImports || "boolean" === typeof input.allowSyntheticDefaultImports, exceptionable, () => ({
135
- path: path + ".allowSyntheticDefaultImports",
136
- expected: "(boolean | undefined)",
137
- value: input.allowSyntheticDefaultImports
138
- })) && $predicate(undefined === input.allowUmdGlobalAccess || "boolean" === typeof input.allowUmdGlobalAccess, exceptionable, () => ({
139
- path: path + ".allowUmdGlobalAccess",
140
- expected: "(boolean | undefined)",
141
- value: input.allowUmdGlobalAccess
142
- })) && $predicate(undefined === input.allowUnreachableCode || "boolean" === typeof input.allowUnreachableCode, exceptionable, () => ({
143
- path: path + ".allowUnreachableCode",
144
- expected: "(boolean | undefined)",
145
- value: input.allowUnreachableCode
146
- })) && $predicate(undefined === input.allowUnusedLabels || "boolean" === typeof input.allowUnusedLabels, exceptionable, () => ({
147
- path: path + ".allowUnusedLabels",
148
- expected: "(boolean | undefined)",
149
- value: input.allowUnusedLabels
150
- })) && $predicate(undefined === input.alwaysStrict || "boolean" === typeof input.alwaysStrict, exceptionable, () => ({
151
- path: path + ".alwaysStrict",
152
- expected: "(boolean | undefined)",
153
- value: input.alwaysStrict
154
- })) && $predicate(undefined === input.baseUrl || "string" === typeof input.baseUrl, exceptionable, () => ({
155
- path: path + ".baseUrl",
156
- expected: "(string | undefined)",
157
- value: input.baseUrl
158
- })) && $predicate(undefined === input.charset || "string" === typeof input.charset, exceptionable, () => ({
159
- path: path + ".charset",
160
- expected: "(string | undefined)",
161
- value: input.charset
162
- })) && $predicate(undefined === input.checkJs || "boolean" === typeof input.checkJs, exceptionable, () => ({
163
- path: path + ".checkJs",
164
- expected: "(boolean | undefined)",
165
- value: input.checkJs
166
- })) && $predicate(undefined === input.declaration || "boolean" === typeof input.declaration, exceptionable, () => ({
167
- path: path + ".declaration",
168
- expected: "(boolean | undefined)",
169
- value: input.declaration
170
- })) && $predicate(undefined === input.declarationMap || "boolean" === typeof input.declarationMap, exceptionable, () => ({
171
- path: path + ".declarationMap",
172
- expected: "(boolean | undefined)",
173
- value: input.declarationMap
174
- })) && $predicate(undefined === input.emitDeclarationOnly || "boolean" === typeof input.emitDeclarationOnly, exceptionable, () => ({
175
- path: path + ".emitDeclarationOnly",
176
- expected: "(boolean | undefined)",
177
- value: input.emitDeclarationOnly
178
- })) && $predicate(undefined === input.declarationDir || "string" === typeof input.declarationDir, exceptionable, () => ({
179
- path: path + ".declarationDir",
180
- expected: "(string | undefined)",
181
- value: input.declarationDir
182
- })) && $predicate(undefined === input.disableSizeLimit || "boolean" === typeof input.disableSizeLimit, exceptionable, () => ({
183
- path: path + ".disableSizeLimit",
184
- expected: "(boolean | undefined)",
185
- value: input.disableSizeLimit
186
- })) && $predicate(undefined === input.disableSourceOfProjectReferenceRedirect || "boolean" === typeof input.disableSourceOfProjectReferenceRedirect, exceptionable, () => ({
187
- path: path + ".disableSourceOfProjectReferenceRedirect",
188
- expected: "(boolean | undefined)",
189
- value: input.disableSourceOfProjectReferenceRedirect
190
- })) && $predicate(undefined === input.disableSolutionSearching || "boolean" === typeof input.disableSolutionSearching, exceptionable, () => ({
191
- path: path + ".disableSolutionSearching",
192
- expected: "(boolean | undefined)",
193
- value: input.disableSolutionSearching
194
- })) && $predicate(undefined === input.disableReferencedProjectLoad || "boolean" === typeof input.disableReferencedProjectLoad, exceptionable, () => ({
195
- path: path + ".disableReferencedProjectLoad",
196
- expected: "(boolean | undefined)",
197
- value: input.disableReferencedProjectLoad
198
- })) && $predicate(undefined === input.downlevelIteration || "boolean" === typeof input.downlevelIteration, exceptionable, () => ({
199
- path: path + ".downlevelIteration",
200
- expected: "(boolean | undefined)",
201
- value: input.downlevelIteration
202
- })) && $predicate(undefined === input.emitBOM || "boolean" === typeof input.emitBOM, exceptionable, () => ({
203
- path: path + ".emitBOM",
204
- expected: "(boolean | undefined)",
205
- value: input.emitBOM
206
- })) && $predicate(undefined === input.emitDecoratorMetadata || "boolean" === typeof input.emitDecoratorMetadata, exceptionable, () => ({
207
- path: path + ".emitDecoratorMetadata",
208
- expected: "(boolean | undefined)",
209
- value: input.emitDecoratorMetadata
210
- })) && $predicate(undefined === input.exactOptionalPropertyTypes || "boolean" === typeof input.exactOptionalPropertyTypes, exceptionable, () => ({
211
- path: path + ".exactOptionalPropertyTypes",
212
- expected: "(boolean | undefined)",
213
- value: input.exactOptionalPropertyTypes
214
- })) && $predicate(undefined === input.experimentalDecorators || "boolean" === typeof input.experimentalDecorators, exceptionable, () => ({
215
- path: path + ".experimentalDecorators",
216
- expected: "(boolean | undefined)",
217
- value: input.experimentalDecorators
218
- })) && $predicate(undefined === input.forceConsistentCasingInFileNames || "boolean" === typeof input.forceConsistentCasingInFileNames, exceptionable, () => ({
219
- path: path + ".forceConsistentCasingInFileNames",
220
- expected: "(boolean | undefined)",
221
- value: input.forceConsistentCasingInFileNames
222
- })) && $predicate(undefined === input.importHelpers || "boolean" === typeof input.importHelpers, exceptionable, () => ({
223
- path: path + ".importHelpers",
224
- expected: "(boolean | undefined)",
225
- value: input.importHelpers
226
- })) && true && $predicate(undefined === input.inlineSourceMap || "boolean" === typeof input.inlineSourceMap, exceptionable, () => ({
227
- path: path + ".inlineSourceMap",
228
- expected: "(boolean | undefined)",
229
- value: input.inlineSourceMap
230
- })) && $predicate(undefined === input.inlineSources || "boolean" === typeof input.inlineSources, exceptionable, () => ({
231
- path: path + ".inlineSources",
232
- expected: "(boolean | undefined)",
233
- value: input.inlineSources
234
- })) && $predicate(undefined === input.isolatedModules || "boolean" === typeof input.isolatedModules, exceptionable, () => ({
235
- path: path + ".isolatedModules",
236
- expected: "(boolean | undefined)",
237
- value: input.isolatedModules
238
- })) && true && $predicate(undefined === input.keyofStringsOnly || "boolean" === typeof input.keyofStringsOnly, exceptionable, () => ({
239
- path: path + ".keyofStringsOnly",
240
- expected: "(boolean | undefined)",
241
- value: input.keyofStringsOnly
242
- })) && $predicate(undefined === input.lib || Array.isArray(input.lib) && input.lib.every((elem, index4) => $predicate("string" === typeof elem, exceptionable, () => ({
243
- path: path + ".lib[" + index4 + "]",
244
- expected: "string",
245
- value: elem
246
- }))), exceptionable, () => ({
247
- path: path + ".lib",
248
- expected: "(Array<string> | undefined)",
249
- value: input.lib
250
- })) && $predicate(undefined === input.locale || "string" === typeof input.locale, exceptionable, () => ({
251
- path: path + ".locale",
252
- expected: "(string | undefined)",
253
- value: input.locale
254
- })) && $predicate(undefined === input.mapRoot || "string" === typeof input.mapRoot, exceptionable, () => ({
255
- path: path + ".mapRoot",
256
- expected: "(string | undefined)",
257
- value: input.mapRoot
258
- })) && true && true && true && $predicate(undefined === input.moduleSuffixes || Array.isArray(input.moduleSuffixes) && input.moduleSuffixes.every((elem, index5) => $predicate("string" === typeof elem, exceptionable, () => ({
259
- path: path + ".moduleSuffixes[" + index5 + "]",
260
- expected: "string",
261
- value: elem
262
- }))), exceptionable, () => ({
263
- path: path + ".moduleSuffixes",
264
- expected: "(Array<string> | undefined)",
265
- value: input.moduleSuffixes
266
- })) && true && true && $predicate(undefined === input.noEmit || "boolean" === typeof input.noEmit, exceptionable, () => ({
267
- path: path + ".noEmit",
268
- expected: "(boolean | undefined)",
269
- value: input.noEmit
270
- })) && $predicate(undefined === input.noEmitHelpers || "boolean" === typeof input.noEmitHelpers, exceptionable, () => ({
271
- path: path + ".noEmitHelpers",
272
- expected: "(boolean | undefined)",
273
- value: input.noEmitHelpers
274
- })) && $predicate(undefined === input.noEmitOnError || "boolean" === typeof input.noEmitOnError, exceptionable, () => ({
275
- path: path + ".noEmitOnError",
276
- expected: "(boolean | undefined)",
277
- value: input.noEmitOnError
278
- })) && $predicate(undefined === input.noErrorTruncation || "boolean" === typeof input.noErrorTruncation, exceptionable, () => ({
279
- path: path + ".noErrorTruncation",
280
- expected: "(boolean | undefined)",
281
- value: input.noErrorTruncation
282
- })) && $predicate(undefined === input.noFallthroughCasesInSwitch || "boolean" === typeof input.noFallthroughCasesInSwitch, exceptionable, () => ({
283
- path: path + ".noFallthroughCasesInSwitch",
284
- expected: "(boolean | undefined)",
285
- value: input.noFallthroughCasesInSwitch
286
- })) && $predicate(undefined === input.noImplicitAny || "boolean" === typeof input.noImplicitAny, exceptionable, () => ({
287
- path: path + ".noImplicitAny",
288
- expected: "(boolean | undefined)",
289
- value: input.noImplicitAny
290
- })) && $predicate(undefined === input.noImplicitReturns || "boolean" === typeof input.noImplicitReturns, exceptionable, () => ({
291
- path: path + ".noImplicitReturns",
292
- expected: "(boolean | undefined)",
293
- value: input.noImplicitReturns
294
- })) && $predicate(undefined === input.noImplicitThis || "boolean" === typeof input.noImplicitThis, exceptionable, () => ({
295
- path: path + ".noImplicitThis",
296
- expected: "(boolean | undefined)",
297
- value: input.noImplicitThis
298
- })) && $predicate(undefined === input.noStrictGenericChecks || "boolean" === typeof input.noStrictGenericChecks, exceptionable, () => ({
299
- path: path + ".noStrictGenericChecks",
300
- expected: "(boolean | undefined)",
301
- value: input.noStrictGenericChecks
302
- })) && $predicate(undefined === input.noUnusedLocals || "boolean" === typeof input.noUnusedLocals, exceptionable, () => ({
303
- path: path + ".noUnusedLocals",
304
- expected: "(boolean | undefined)",
305
- value: input.noUnusedLocals
306
- })) && $predicate(undefined === input.noUnusedParameters || "boolean" === typeof input.noUnusedParameters, exceptionable, () => ({
307
- path: path + ".noUnusedParameters",
308
- expected: "(boolean | undefined)",
309
- value: input.noUnusedParameters
310
- })) && $predicate(undefined === input.noImplicitUseStrict || "boolean" === typeof input.noImplicitUseStrict, exceptionable, () => ({
311
- path: path + ".noImplicitUseStrict",
312
- expected: "(boolean | undefined)",
313
- value: input.noImplicitUseStrict
314
- })) && $predicate(undefined === input.noPropertyAccessFromIndexSignature || "boolean" === typeof input.noPropertyAccessFromIndexSignature, exceptionable, () => ({
315
- path: path + ".noPropertyAccessFromIndexSignature",
316
- expected: "(boolean | undefined)",
317
- value: input.noPropertyAccessFromIndexSignature
318
- })) && $predicate(undefined === input.assumeChangesOnlyAffectDirectDependencies || "boolean" === typeof input.assumeChangesOnlyAffectDirectDependencies, exceptionable, () => ({
319
- path: path + ".assumeChangesOnlyAffectDirectDependencies",
320
- expected: "(boolean | undefined)",
321
- value: input.assumeChangesOnlyAffectDirectDependencies
322
- })) && $predicate(undefined === input.noLib || "boolean" === typeof input.noLib, exceptionable, () => ({
323
- path: path + ".noLib",
324
- expected: "(boolean | undefined)",
325
- value: input.noLib
326
- })) && $predicate(undefined === input.noResolve || "boolean" === typeof input.noResolve, exceptionable, () => ({
327
- path: path + ".noResolve",
328
- expected: "(boolean | undefined)",
329
- value: input.noResolve
330
- })) && $predicate(undefined === input.noUncheckedIndexedAccess || "boolean" === typeof input.noUncheckedIndexedAccess, exceptionable, () => ({
331
- path: path + ".noUncheckedIndexedAccess",
332
- expected: "(boolean | undefined)",
333
- value: input.noUncheckedIndexedAccess
334
- })) && $predicate(undefined === input.out || "string" === typeof input.out, exceptionable, () => ({
335
- path: path + ".out",
336
- expected: "(string | undefined)",
337
- value: input.out
338
- })) && $predicate(undefined === input.outDir || "string" === typeof input.outDir, exceptionable, () => ({
339
- path: path + ".outDir",
340
- expected: "(string | undefined)",
341
- value: input.outDir
342
- })) && $predicate(undefined === input.outFile || "string" === typeof input.outFile, exceptionable, () => ({
343
- path: path + ".outFile",
344
- expected: "(string | undefined)",
345
- value: input.outFile
346
- })) && $predicate(null !== input.paths && $predicate(undefined === input.paths || "object" === typeof input.paths && null !== input.paths && $ao[3](input.paths, path + ".paths", true && exceptionable), exceptionable, () => ({
347
- path: path + ".paths",
348
- expected: "(Resolve<ts.MapLike<Array<string>>> | undefined)",
349
- value: input.paths
350
- })), exceptionable, () => ({
351
- path: path + ".paths",
352
- expected: "(Resolve<ts.MapLike<Array<string>>> | undefined)",
353
- value: input.paths
354
- })) && $predicate(undefined === input.preserveConstEnums || "boolean" === typeof input.preserveConstEnums, exceptionable, () => ({
355
- path: path + ".preserveConstEnums",
356
- expected: "(boolean | undefined)",
357
- value: input.preserveConstEnums
358
- })) && $predicate(undefined === input.noImplicitOverride || "boolean" === typeof input.noImplicitOverride, exceptionable, () => ({
359
- path: path + ".noImplicitOverride",
360
- expected: "(boolean | undefined)",
361
- value: input.noImplicitOverride
362
- })) && $predicate(undefined === input.preserveSymlinks || "boolean" === typeof input.preserveSymlinks, exceptionable, () => ({
363
- path: path + ".preserveSymlinks",
364
- expected: "(boolean | undefined)",
365
- value: input.preserveSymlinks
366
- })) && $predicate(undefined === input.preserveValueImports || "boolean" === typeof input.preserveValueImports, exceptionable, () => ({
367
- path: path + ".preserveValueImports",
368
- expected: "(boolean | undefined)",
369
- value: input.preserveValueImports
370
- })) && $predicate(undefined === input.project || "string" === typeof input.project, exceptionable, () => ({
371
- path: path + ".project",
372
- expected: "(string | undefined)",
373
- value: input.project
374
- })) && $predicate(undefined === input.reactNamespace || "string" === typeof input.reactNamespace, exceptionable, () => ({
375
- path: path + ".reactNamespace",
376
- expected: "(string | undefined)",
377
- value: input.reactNamespace
378
- })) && $predicate(undefined === input.jsxFactory || "string" === typeof input.jsxFactory, exceptionable, () => ({
379
- path: path + ".jsxFactory",
380
- expected: "(string | undefined)",
381
- value: input.jsxFactory
382
- })) && $predicate(undefined === input.jsxFragmentFactory || "string" === typeof input.jsxFragmentFactory, exceptionable, () => ({
383
- path: path + ".jsxFragmentFactory",
384
- expected: "(string | undefined)",
385
- value: input.jsxFragmentFactory
386
- })) && $predicate(undefined === input.jsxImportSource || "string" === typeof input.jsxImportSource, exceptionable, () => ({
387
- path: path + ".jsxImportSource",
388
- expected: "(string | undefined)",
389
- value: input.jsxImportSource
390
- })) && $predicate(undefined === input.composite || "boolean" === typeof input.composite, exceptionable, () => ({
391
- path: path + ".composite",
392
- expected: "(boolean | undefined)",
393
- value: input.composite
394
- })) && $predicate(undefined === input.incremental || "boolean" === typeof input.incremental, exceptionable, () => ({
395
- path: path + ".incremental",
396
- expected: "(boolean | undefined)",
397
- value: input.incremental
398
- })) && $predicate(undefined === input.tsBuildInfoFile || "string" === typeof input.tsBuildInfoFile, exceptionable, () => ({
399
- path: path + ".tsBuildInfoFile",
400
- expected: "(string | undefined)",
401
- value: input.tsBuildInfoFile
402
- })) && $predicate(undefined === input.removeComments || "boolean" === typeof input.removeComments, exceptionable, () => ({
403
- path: path + ".removeComments",
404
- expected: "(boolean | undefined)",
405
- value: input.removeComments
406
- })) && $predicate(undefined === input.rootDir || "string" === typeof input.rootDir, exceptionable, () => ({
407
- path: path + ".rootDir",
408
- expected: "(string | undefined)",
409
- value: input.rootDir
410
- })) && $predicate(undefined === input.rootDirs || Array.isArray(input.rootDirs) && input.rootDirs.every((elem, index6) => $predicate("string" === typeof elem, exceptionable, () => ({
411
- path: path + ".rootDirs[" + index6 + "]",
412
- expected: "string",
413
- value: elem
414
- }))), exceptionable, () => ({
415
- path: path + ".rootDirs",
416
- expected: "(Array<string> | undefined)",
417
- value: input.rootDirs
418
- })) && $predicate(undefined === input.skipLibCheck || "boolean" === typeof input.skipLibCheck, exceptionable, () => ({
419
- path: path + ".skipLibCheck",
420
- expected: "(boolean | undefined)",
421
- value: input.skipLibCheck
422
- })) && $predicate(undefined === input.skipDefaultLibCheck || "boolean" === typeof input.skipDefaultLibCheck, exceptionable, () => ({
423
- path: path + ".skipDefaultLibCheck",
424
- expected: "(boolean | undefined)",
425
- value: input.skipDefaultLibCheck
426
- })) && $predicate(undefined === input.sourceMap || "boolean" === typeof input.sourceMap, exceptionable, () => ({
427
- path: path + ".sourceMap",
428
- expected: "(boolean | undefined)",
429
- value: input.sourceMap
430
- })) && $predicate(undefined === input.sourceRoot || "string" === typeof input.sourceRoot, exceptionable, () => ({
431
- path: path + ".sourceRoot",
432
- expected: "(string | undefined)",
433
- value: input.sourceRoot
434
- })) && $predicate(undefined === input.strict || "boolean" === typeof input.strict, exceptionable, () => ({
435
- path: path + ".strict",
436
- expected: "(boolean | undefined)",
437
- value: input.strict
438
- })) && $predicate(undefined === input.strictFunctionTypes || "boolean" === typeof input.strictFunctionTypes, exceptionable, () => ({
439
- path: path + ".strictFunctionTypes",
440
- expected: "(boolean | undefined)",
441
- value: input.strictFunctionTypes
442
- })) && $predicate(undefined === input.strictBindCallApply || "boolean" === typeof input.strictBindCallApply, exceptionable, () => ({
443
- path: path + ".strictBindCallApply",
444
- expected: "(boolean | undefined)",
445
- value: input.strictBindCallApply
446
- })) && $predicate(undefined === input.strictNullChecks || "boolean" === typeof input.strictNullChecks, exceptionable, () => ({
447
- path: path + ".strictNullChecks",
448
- expected: "(boolean | undefined)",
449
- value: input.strictNullChecks
450
- })) && $predicate(undefined === input.strictPropertyInitialization || "boolean" === typeof input.strictPropertyInitialization, exceptionable, () => ({
451
- path: path + ".strictPropertyInitialization",
452
- expected: "(boolean | undefined)",
453
- value: input.strictPropertyInitialization
454
- })) && $predicate(undefined === input.stripInternal || "boolean" === typeof input.stripInternal, exceptionable, () => ({
455
- path: path + ".stripInternal",
456
- expected: "(boolean | undefined)",
457
- value: input.stripInternal
458
- })) && $predicate(undefined === input.suppressExcessPropertyErrors || "boolean" === typeof input.suppressExcessPropertyErrors, exceptionable, () => ({
459
- path: path + ".suppressExcessPropertyErrors",
460
- expected: "(boolean | undefined)",
461
- value: input.suppressExcessPropertyErrors
462
- })) && $predicate(undefined === input.suppressImplicitAnyIndexErrors || "boolean" === typeof input.suppressImplicitAnyIndexErrors, exceptionable, () => ({
463
- path: path + ".suppressImplicitAnyIndexErrors",
464
- expected: "(boolean | undefined)",
465
- value: input.suppressImplicitAnyIndexErrors
466
- })) && true && $predicate(undefined === input.traceResolution || "boolean" === typeof input.traceResolution, exceptionable, () => ({
467
- path: path + ".traceResolution",
468
- expected: "(boolean | undefined)",
469
- value: input.traceResolution
470
- })) && $predicate(undefined === input.useUnknownInCatchVariables || "boolean" === typeof input.useUnknownInCatchVariables, exceptionable, () => ({
471
- path: path + ".useUnknownInCatchVariables",
472
- expected: "(boolean | undefined)",
473
- value: input.useUnknownInCatchVariables
474
- })) && $predicate(undefined === input.resolveJsonModule || "boolean" === typeof input.resolveJsonModule, exceptionable, () => ({
475
- path: path + ".resolveJsonModule",
476
- expected: "(boolean | undefined)",
477
- value: input.resolveJsonModule
478
- })) && $predicate(undefined === input.types || Array.isArray(input.types) && input.types.every((elem, index7) => $predicate("string" === typeof elem, exceptionable, () => ({
479
- path: path + ".types[" + index7 + "]",
480
- expected: "string",
481
- value: elem
482
- }))), exceptionable, () => ({
483
- path: path + ".types",
484
- expected: "(Array<string> | undefined)",
485
- value: input.types
486
- })) && $predicate(undefined === input.typeRoots || Array.isArray(input.typeRoots) && input.typeRoots.every((elem, index8) => $predicate("string" === typeof elem, exceptionable, () => ({
487
- path: path + ".typeRoots[" + index8 + "]",
488
- expected: "string",
489
- value: elem
490
- }))), exceptionable, () => ({
491
- path: path + ".typeRoots",
492
- expected: "(Array<string> | undefined)",
493
- value: input.typeRoots
494
- })) && $predicate(undefined === input.esModuleInterop || "boolean" === typeof input.esModuleInterop, exceptionable, () => ({
495
- path: path + ".esModuleInterop",
496
- expected: "(boolean | undefined)",
497
- value: input.esModuleInterop
498
- })) && $predicate(undefined === input.useDefineForClassFields || "boolean" === typeof input.useDefineForClassFields, exceptionable, () => ({
499
- path: path + ".useDefineForClassFields",
500
- expected: "(boolean | undefined)",
501
- value: input.useDefineForClassFields
502
- })),
503
- (input, path, exceptionable) => true,
504
- (input, path, exceptionable) => $predicate("string" === typeof input.output, exceptionable, () => ({
505
- path: path + ".output",
506
- expected: "string",
507
- value: input.output
508
- }))
509
- ];
510
- return $predicate(null !== input && $predicate("object" === typeof input && null !== input && $ao[0](input, path + "", true), true, () => ({
511
- path: path + "",
512
- expected: "Resolve<__type>",
513
- value: input
514
- })), true, () => ({
515
- path: path + "",
516
- expected: "Resolve<__type>",
517
- value: input
518
- }));
519
- })(input); return input; })(nestia_fetcher_1.Primitive.clone(config));
520
- }));
521
- })(NestiaConfig = exports.NestiaConfig || (exports.NestiaConfig = {}));
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
+ return new (P || (P = Promise))(function (resolve, reject) {
28
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32
+ });
33
+ };
34
+ var __importDefault = (this && this.__importDefault) || function (mod) {
35
+ return (mod && mod.__esModule) ? mod : { "default": mod };
36
+ };
37
+ Object.defineProperty(exports, "__esModule", { value: true });
38
+ exports.NestiaConfig = void 0;
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");
45
+ var NestiaConfig;
46
+ (function (NestiaConfig) {
47
+ function get() {
48
+ return singleton.get();
49
+ }
50
+ NestiaConfig.get = get;
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
+ module: "CommonJS",
58
+ noEmit: true,
59
+ },
60
+ });
61
+ const loaded = yield Promise.resolve().then(() => __importStar(require(path_1.default.resolve("nestia.config.ts"))));
62
+ if (typeof loaded !== "object")
63
+ throw new Error("Error on NestiaConfig.get(): failed to load data");
64
+ const config = typeof loaded.default === "object" ? loaded.default : loaded;
65
+ return (input => { ((input, path = "$input") => {
66
+ const $predicate = typescript_json_1.assertType.predicate;
67
+ const $ao = [
68
+ (input, path, exceptionable) => $predicate(null !== input.input && undefined !== input.input && $predicate("string" === typeof input.input || Array.isArray(input.input) && input.input.every((elem, index1) => $predicate("string" === typeof elem, exceptionable, () => ({
69
+ path: path + ".input[" + index1 + "]",
70
+ expected: "string",
71
+ value: elem
72
+ }))) || "object" === typeof input.input && null !== input.input && $ao[1](input.input, path + ".input", true && exceptionable), exceptionable, () => ({
73
+ path: path + ".input",
74
+ expected: "(Array<string> | Resolve<IConfiguration.IInput> | string)",
75
+ value: input.input
76
+ })), exceptionable, () => ({
77
+ path: path + ".input",
78
+ expected: "(Array<string> | Resolve<IConfiguration.IInput> | string)",
79
+ value: input.input
80
+ })) && $predicate(undefined === input.output || "string" === typeof input.output, exceptionable, () => ({
81
+ path: path + ".output",
82
+ expected: "(string | undefined)",
83
+ value: input.output
84
+ })) && $predicate(null !== input.compilerOptions && $predicate(undefined === input.compilerOptions || "object" === typeof input.compilerOptions && null !== input.compilerOptions && $ao[2](input.compilerOptions, path + ".compilerOptions", true && exceptionable), exceptionable, () => ({
85
+ path: path + ".compilerOptions",
86
+ expected: "(Resolve<__type.o1> | undefined)",
87
+ value: input.compilerOptions
88
+ })), exceptionable, () => ({
89
+ path: path + ".compilerOptions",
90
+ expected: "(Resolve<__type.o1> | undefined)",
91
+ value: input.compilerOptions
92
+ })) && $predicate(undefined === input.assert || "boolean" === typeof input.assert, exceptionable, () => ({
93
+ path: path + ".assert",
94
+ expected: "(boolean | undefined)",
95
+ value: input.assert
96
+ })) && $predicate(undefined === input.json || "boolean" === typeof input.json, exceptionable, () => ({
97
+ path: path + ".json",
98
+ expected: "(boolean | undefined)",
99
+ value: input.json
100
+ })) && $predicate(undefined === input.primitive || "boolean" === typeof input.primitive, exceptionable, () => ({
101
+ path: path + ".primitive",
102
+ expected: "(boolean | undefined)",
103
+ value: input.primitive
104
+ })) && $predicate(null !== input.swagger && $predicate(undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $ao[4](input.swagger, path + ".swagger", true && exceptionable), exceptionable, () => ({
105
+ path: path + ".swagger",
106
+ expected: "(Resolve<IConfiguration.ISwagger> | undefined)",
107
+ value: input.swagger
108
+ })), exceptionable, () => ({
109
+ path: path + ".swagger",
110
+ expected: "(Resolve<IConfiguration.ISwagger> | undefined)",
111
+ value: input.swagger
112
+ })),
113
+ (input, path, exceptionable) => $predicate(Array.isArray(input.include) && input.include.every((elem, index2) => $predicate("string" === typeof elem, exceptionable, () => ({
114
+ path: path + ".include[" + index2 + "]",
115
+ expected: "string",
116
+ value: elem
117
+ }))), exceptionable, () => ({
118
+ path: path + ".include",
119
+ expected: "Array<string>",
120
+ value: input.include
121
+ })) && $predicate(undefined === input.exclude || Array.isArray(input.exclude) && input.exclude.every((elem, index3) => $predicate("string" === typeof elem, exceptionable, () => ({
122
+ path: path + ".exclude[" + index3 + "]",
123
+ expected: "string",
124
+ value: elem
125
+ }))), exceptionable, () => ({
126
+ path: path + ".exclude",
127
+ expected: "(Array<string> | undefined)",
128
+ value: input.exclude
129
+ })),
130
+ (input, path, exceptionable) => $predicate(undefined === input.allowJs || "boolean" === typeof input.allowJs, exceptionable, () => ({
131
+ path: path + ".allowJs",
132
+ expected: "(boolean | undefined)",
133
+ value: input.allowJs
134
+ })) && $predicate(undefined === input.allowSyntheticDefaultImports || "boolean" === typeof input.allowSyntheticDefaultImports, exceptionable, () => ({
135
+ path: path + ".allowSyntheticDefaultImports",
136
+ expected: "(boolean | undefined)",
137
+ value: input.allowSyntheticDefaultImports
138
+ })) && $predicate(undefined === input.allowUmdGlobalAccess || "boolean" === typeof input.allowUmdGlobalAccess, exceptionable, () => ({
139
+ path: path + ".allowUmdGlobalAccess",
140
+ expected: "(boolean | undefined)",
141
+ value: input.allowUmdGlobalAccess
142
+ })) && $predicate(undefined === input.allowUnreachableCode || "boolean" === typeof input.allowUnreachableCode, exceptionable, () => ({
143
+ path: path + ".allowUnreachableCode",
144
+ expected: "(boolean | undefined)",
145
+ value: input.allowUnreachableCode
146
+ })) && $predicate(undefined === input.allowUnusedLabels || "boolean" === typeof input.allowUnusedLabels, exceptionable, () => ({
147
+ path: path + ".allowUnusedLabels",
148
+ expected: "(boolean | undefined)",
149
+ value: input.allowUnusedLabels
150
+ })) && $predicate(undefined === input.alwaysStrict || "boolean" === typeof input.alwaysStrict, exceptionable, () => ({
151
+ path: path + ".alwaysStrict",
152
+ expected: "(boolean | undefined)",
153
+ value: input.alwaysStrict
154
+ })) && $predicate(undefined === input.baseUrl || "string" === typeof input.baseUrl, exceptionable, () => ({
155
+ path: path + ".baseUrl",
156
+ expected: "(string | undefined)",
157
+ value: input.baseUrl
158
+ })) && $predicate(undefined === input.charset || "string" === typeof input.charset, exceptionable, () => ({
159
+ path: path + ".charset",
160
+ expected: "(string | undefined)",
161
+ value: input.charset
162
+ })) && $predicate(undefined === input.checkJs || "boolean" === typeof input.checkJs, exceptionable, () => ({
163
+ path: path + ".checkJs",
164
+ expected: "(boolean | undefined)",
165
+ value: input.checkJs
166
+ })) && $predicate(undefined === input.declaration || "boolean" === typeof input.declaration, exceptionable, () => ({
167
+ path: path + ".declaration",
168
+ expected: "(boolean | undefined)",
169
+ value: input.declaration
170
+ })) && $predicate(undefined === input.declarationMap || "boolean" === typeof input.declarationMap, exceptionable, () => ({
171
+ path: path + ".declarationMap",
172
+ expected: "(boolean | undefined)",
173
+ value: input.declarationMap
174
+ })) && $predicate(undefined === input.emitDeclarationOnly || "boolean" === typeof input.emitDeclarationOnly, exceptionable, () => ({
175
+ path: path + ".emitDeclarationOnly",
176
+ expected: "(boolean | undefined)",
177
+ value: input.emitDeclarationOnly
178
+ })) && $predicate(undefined === input.declarationDir || "string" === typeof input.declarationDir, exceptionable, () => ({
179
+ path: path + ".declarationDir",
180
+ expected: "(string | undefined)",
181
+ value: input.declarationDir
182
+ })) && $predicate(undefined === input.disableSizeLimit || "boolean" === typeof input.disableSizeLimit, exceptionable, () => ({
183
+ path: path + ".disableSizeLimit",
184
+ expected: "(boolean | undefined)",
185
+ value: input.disableSizeLimit
186
+ })) && $predicate(undefined === input.disableSourceOfProjectReferenceRedirect || "boolean" === typeof input.disableSourceOfProjectReferenceRedirect, exceptionable, () => ({
187
+ path: path + ".disableSourceOfProjectReferenceRedirect",
188
+ expected: "(boolean | undefined)",
189
+ value: input.disableSourceOfProjectReferenceRedirect
190
+ })) && $predicate(undefined === input.disableSolutionSearching || "boolean" === typeof input.disableSolutionSearching, exceptionable, () => ({
191
+ path: path + ".disableSolutionSearching",
192
+ expected: "(boolean | undefined)",
193
+ value: input.disableSolutionSearching
194
+ })) && $predicate(undefined === input.disableReferencedProjectLoad || "boolean" === typeof input.disableReferencedProjectLoad, exceptionable, () => ({
195
+ path: path + ".disableReferencedProjectLoad",
196
+ expected: "(boolean | undefined)",
197
+ value: input.disableReferencedProjectLoad
198
+ })) && $predicate(undefined === input.downlevelIteration || "boolean" === typeof input.downlevelIteration, exceptionable, () => ({
199
+ path: path + ".downlevelIteration",
200
+ expected: "(boolean | undefined)",
201
+ value: input.downlevelIteration
202
+ })) && $predicate(undefined === input.emitBOM || "boolean" === typeof input.emitBOM, exceptionable, () => ({
203
+ path: path + ".emitBOM",
204
+ expected: "(boolean | undefined)",
205
+ value: input.emitBOM
206
+ })) && $predicate(undefined === input.emitDecoratorMetadata || "boolean" === typeof input.emitDecoratorMetadata, exceptionable, () => ({
207
+ path: path + ".emitDecoratorMetadata",
208
+ expected: "(boolean | undefined)",
209
+ value: input.emitDecoratorMetadata
210
+ })) && $predicate(undefined === input.exactOptionalPropertyTypes || "boolean" === typeof input.exactOptionalPropertyTypes, exceptionable, () => ({
211
+ path: path + ".exactOptionalPropertyTypes",
212
+ expected: "(boolean | undefined)",
213
+ value: input.exactOptionalPropertyTypes
214
+ })) && $predicate(undefined === input.experimentalDecorators || "boolean" === typeof input.experimentalDecorators, exceptionable, () => ({
215
+ path: path + ".experimentalDecorators",
216
+ expected: "(boolean | undefined)",
217
+ value: input.experimentalDecorators
218
+ })) && $predicate(undefined === input.forceConsistentCasingInFileNames || "boolean" === typeof input.forceConsistentCasingInFileNames, exceptionable, () => ({
219
+ path: path + ".forceConsistentCasingInFileNames",
220
+ expected: "(boolean | undefined)",
221
+ value: input.forceConsistentCasingInFileNames
222
+ })) && $predicate(undefined === input.importHelpers || "boolean" === typeof input.importHelpers, exceptionable, () => ({
223
+ path: path + ".importHelpers",
224
+ expected: "(boolean | undefined)",
225
+ value: input.importHelpers
226
+ })) && true && $predicate(undefined === input.inlineSourceMap || "boolean" === typeof input.inlineSourceMap, exceptionable, () => ({
227
+ path: path + ".inlineSourceMap",
228
+ expected: "(boolean | undefined)",
229
+ value: input.inlineSourceMap
230
+ })) && $predicate(undefined === input.inlineSources || "boolean" === typeof input.inlineSources, exceptionable, () => ({
231
+ path: path + ".inlineSources",
232
+ expected: "(boolean | undefined)",
233
+ value: input.inlineSources
234
+ })) && $predicate(undefined === input.isolatedModules || "boolean" === typeof input.isolatedModules, exceptionable, () => ({
235
+ path: path + ".isolatedModules",
236
+ expected: "(boolean | undefined)",
237
+ value: input.isolatedModules
238
+ })) && true && $predicate(undefined === input.keyofStringsOnly || "boolean" === typeof input.keyofStringsOnly, exceptionable, () => ({
239
+ path: path + ".keyofStringsOnly",
240
+ expected: "(boolean | undefined)",
241
+ value: input.keyofStringsOnly
242
+ })) && $predicate(undefined === input.lib || Array.isArray(input.lib) && input.lib.every((elem, index4) => $predicate("string" === typeof elem, exceptionable, () => ({
243
+ path: path + ".lib[" + index4 + "]",
244
+ expected: "string",
245
+ value: elem
246
+ }))), exceptionable, () => ({
247
+ path: path + ".lib",
248
+ expected: "(Array<string> | undefined)",
249
+ value: input.lib
250
+ })) && $predicate(undefined === input.locale || "string" === typeof input.locale, exceptionable, () => ({
251
+ path: path + ".locale",
252
+ expected: "(string | undefined)",
253
+ value: input.locale
254
+ })) && $predicate(undefined === input.mapRoot || "string" === typeof input.mapRoot, exceptionable, () => ({
255
+ path: path + ".mapRoot",
256
+ expected: "(string | undefined)",
257
+ value: input.mapRoot
258
+ })) && true && true && true && $predicate(undefined === input.moduleSuffixes || Array.isArray(input.moduleSuffixes) && input.moduleSuffixes.every((elem, index5) => $predicate("string" === typeof elem, exceptionable, () => ({
259
+ path: path + ".moduleSuffixes[" + index5 + "]",
260
+ expected: "string",
261
+ value: elem
262
+ }))), exceptionable, () => ({
263
+ path: path + ".moduleSuffixes",
264
+ expected: "(Array<string> | undefined)",
265
+ value: input.moduleSuffixes
266
+ })) && true && true && $predicate(undefined === input.noEmit || "boolean" === typeof input.noEmit, exceptionable, () => ({
267
+ path: path + ".noEmit",
268
+ expected: "(boolean | undefined)",
269
+ value: input.noEmit
270
+ })) && $predicate(undefined === input.noEmitHelpers || "boolean" === typeof input.noEmitHelpers, exceptionable, () => ({
271
+ path: path + ".noEmitHelpers",
272
+ expected: "(boolean | undefined)",
273
+ value: input.noEmitHelpers
274
+ })) && $predicate(undefined === input.noEmitOnError || "boolean" === typeof input.noEmitOnError, exceptionable, () => ({
275
+ path: path + ".noEmitOnError",
276
+ expected: "(boolean | undefined)",
277
+ value: input.noEmitOnError
278
+ })) && $predicate(undefined === input.noErrorTruncation || "boolean" === typeof input.noErrorTruncation, exceptionable, () => ({
279
+ path: path + ".noErrorTruncation",
280
+ expected: "(boolean | undefined)",
281
+ value: input.noErrorTruncation
282
+ })) && $predicate(undefined === input.noFallthroughCasesInSwitch || "boolean" === typeof input.noFallthroughCasesInSwitch, exceptionable, () => ({
283
+ path: path + ".noFallthroughCasesInSwitch",
284
+ expected: "(boolean | undefined)",
285
+ value: input.noFallthroughCasesInSwitch
286
+ })) && $predicate(undefined === input.noImplicitAny || "boolean" === typeof input.noImplicitAny, exceptionable, () => ({
287
+ path: path + ".noImplicitAny",
288
+ expected: "(boolean | undefined)",
289
+ value: input.noImplicitAny
290
+ })) && $predicate(undefined === input.noImplicitReturns || "boolean" === typeof input.noImplicitReturns, exceptionable, () => ({
291
+ path: path + ".noImplicitReturns",
292
+ expected: "(boolean | undefined)",
293
+ value: input.noImplicitReturns
294
+ })) && $predicate(undefined === input.noImplicitThis || "boolean" === typeof input.noImplicitThis, exceptionable, () => ({
295
+ path: path + ".noImplicitThis",
296
+ expected: "(boolean | undefined)",
297
+ value: input.noImplicitThis
298
+ })) && $predicate(undefined === input.noStrictGenericChecks || "boolean" === typeof input.noStrictGenericChecks, exceptionable, () => ({
299
+ path: path + ".noStrictGenericChecks",
300
+ expected: "(boolean | undefined)",
301
+ value: input.noStrictGenericChecks
302
+ })) && $predicate(undefined === input.noUnusedLocals || "boolean" === typeof input.noUnusedLocals, exceptionable, () => ({
303
+ path: path + ".noUnusedLocals",
304
+ expected: "(boolean | undefined)",
305
+ value: input.noUnusedLocals
306
+ })) && $predicate(undefined === input.noUnusedParameters || "boolean" === typeof input.noUnusedParameters, exceptionable, () => ({
307
+ path: path + ".noUnusedParameters",
308
+ expected: "(boolean | undefined)",
309
+ value: input.noUnusedParameters
310
+ })) && $predicate(undefined === input.noImplicitUseStrict || "boolean" === typeof input.noImplicitUseStrict, exceptionable, () => ({
311
+ path: path + ".noImplicitUseStrict",
312
+ expected: "(boolean | undefined)",
313
+ value: input.noImplicitUseStrict
314
+ })) && $predicate(undefined === input.noPropertyAccessFromIndexSignature || "boolean" === typeof input.noPropertyAccessFromIndexSignature, exceptionable, () => ({
315
+ path: path + ".noPropertyAccessFromIndexSignature",
316
+ expected: "(boolean | undefined)",
317
+ value: input.noPropertyAccessFromIndexSignature
318
+ })) && $predicate(undefined === input.assumeChangesOnlyAffectDirectDependencies || "boolean" === typeof input.assumeChangesOnlyAffectDirectDependencies, exceptionable, () => ({
319
+ path: path + ".assumeChangesOnlyAffectDirectDependencies",
320
+ expected: "(boolean | undefined)",
321
+ value: input.assumeChangesOnlyAffectDirectDependencies
322
+ })) && $predicate(undefined === input.noLib || "boolean" === typeof input.noLib, exceptionable, () => ({
323
+ path: path + ".noLib",
324
+ expected: "(boolean | undefined)",
325
+ value: input.noLib
326
+ })) && $predicate(undefined === input.noResolve || "boolean" === typeof input.noResolve, exceptionable, () => ({
327
+ path: path + ".noResolve",
328
+ expected: "(boolean | undefined)",
329
+ value: input.noResolve
330
+ })) && $predicate(undefined === input.noUncheckedIndexedAccess || "boolean" === typeof input.noUncheckedIndexedAccess, exceptionable, () => ({
331
+ path: path + ".noUncheckedIndexedAccess",
332
+ expected: "(boolean | undefined)",
333
+ value: input.noUncheckedIndexedAccess
334
+ })) && $predicate(undefined === input.out || "string" === typeof input.out, exceptionable, () => ({
335
+ path: path + ".out",
336
+ expected: "(string | undefined)",
337
+ value: input.out
338
+ })) && $predicate(undefined === input.outDir || "string" === typeof input.outDir, exceptionable, () => ({
339
+ path: path + ".outDir",
340
+ expected: "(string | undefined)",
341
+ value: input.outDir
342
+ })) && $predicate(undefined === input.outFile || "string" === typeof input.outFile, exceptionable, () => ({
343
+ path: path + ".outFile",
344
+ expected: "(string | undefined)",
345
+ value: input.outFile
346
+ })) && $predicate(null !== input.paths && $predicate(undefined === input.paths || "object" === typeof input.paths && null !== input.paths && $ao[3](input.paths, path + ".paths", true && exceptionable), exceptionable, () => ({
347
+ path: path + ".paths",
348
+ expected: "(Resolve<ts.MapLike<Array<string>>> | undefined)",
349
+ value: input.paths
350
+ })), exceptionable, () => ({
351
+ path: path + ".paths",
352
+ expected: "(Resolve<ts.MapLike<Array<string>>> | undefined)",
353
+ value: input.paths
354
+ })) && $predicate(undefined === input.preserveConstEnums || "boolean" === typeof input.preserveConstEnums, exceptionable, () => ({
355
+ path: path + ".preserveConstEnums",
356
+ expected: "(boolean | undefined)",
357
+ value: input.preserveConstEnums
358
+ })) && $predicate(undefined === input.noImplicitOverride || "boolean" === typeof input.noImplicitOverride, exceptionable, () => ({
359
+ path: path + ".noImplicitOverride",
360
+ expected: "(boolean | undefined)",
361
+ value: input.noImplicitOverride
362
+ })) && $predicate(undefined === input.preserveSymlinks || "boolean" === typeof input.preserveSymlinks, exceptionable, () => ({
363
+ path: path + ".preserveSymlinks",
364
+ expected: "(boolean | undefined)",
365
+ value: input.preserveSymlinks
366
+ })) && $predicate(undefined === input.preserveValueImports || "boolean" === typeof input.preserveValueImports, exceptionable, () => ({
367
+ path: path + ".preserveValueImports",
368
+ expected: "(boolean | undefined)",
369
+ value: input.preserveValueImports
370
+ })) && $predicate(undefined === input.project || "string" === typeof input.project, exceptionable, () => ({
371
+ path: path + ".project",
372
+ expected: "(string | undefined)",
373
+ value: input.project
374
+ })) && $predicate(undefined === input.reactNamespace || "string" === typeof input.reactNamespace, exceptionable, () => ({
375
+ path: path + ".reactNamespace",
376
+ expected: "(string | undefined)",
377
+ value: input.reactNamespace
378
+ })) && $predicate(undefined === input.jsxFactory || "string" === typeof input.jsxFactory, exceptionable, () => ({
379
+ path: path + ".jsxFactory",
380
+ expected: "(string | undefined)",
381
+ value: input.jsxFactory
382
+ })) && $predicate(undefined === input.jsxFragmentFactory || "string" === typeof input.jsxFragmentFactory, exceptionable, () => ({
383
+ path: path + ".jsxFragmentFactory",
384
+ expected: "(string | undefined)",
385
+ value: input.jsxFragmentFactory
386
+ })) && $predicate(undefined === input.jsxImportSource || "string" === typeof input.jsxImportSource, exceptionable, () => ({
387
+ path: path + ".jsxImportSource",
388
+ expected: "(string | undefined)",
389
+ value: input.jsxImportSource
390
+ })) && $predicate(undefined === input.composite || "boolean" === typeof input.composite, exceptionable, () => ({
391
+ path: path + ".composite",
392
+ expected: "(boolean | undefined)",
393
+ value: input.composite
394
+ })) && $predicate(undefined === input.incremental || "boolean" === typeof input.incremental, exceptionable, () => ({
395
+ path: path + ".incremental",
396
+ expected: "(boolean | undefined)",
397
+ value: input.incremental
398
+ })) && $predicate(undefined === input.tsBuildInfoFile || "string" === typeof input.tsBuildInfoFile, exceptionable, () => ({
399
+ path: path + ".tsBuildInfoFile",
400
+ expected: "(string | undefined)",
401
+ value: input.tsBuildInfoFile
402
+ })) && $predicate(undefined === input.removeComments || "boolean" === typeof input.removeComments, exceptionable, () => ({
403
+ path: path + ".removeComments",
404
+ expected: "(boolean | undefined)",
405
+ value: input.removeComments
406
+ })) && $predicate(undefined === input.rootDir || "string" === typeof input.rootDir, exceptionable, () => ({
407
+ path: path + ".rootDir",
408
+ expected: "(string | undefined)",
409
+ value: input.rootDir
410
+ })) && $predicate(undefined === input.rootDirs || Array.isArray(input.rootDirs) && input.rootDirs.every((elem, index6) => $predicate("string" === typeof elem, exceptionable, () => ({
411
+ path: path + ".rootDirs[" + index6 + "]",
412
+ expected: "string",
413
+ value: elem
414
+ }))), exceptionable, () => ({
415
+ path: path + ".rootDirs",
416
+ expected: "(Array<string> | undefined)",
417
+ value: input.rootDirs
418
+ })) && $predicate(undefined === input.skipLibCheck || "boolean" === typeof input.skipLibCheck, exceptionable, () => ({
419
+ path: path + ".skipLibCheck",
420
+ expected: "(boolean | undefined)",
421
+ value: input.skipLibCheck
422
+ })) && $predicate(undefined === input.skipDefaultLibCheck || "boolean" === typeof input.skipDefaultLibCheck, exceptionable, () => ({
423
+ path: path + ".skipDefaultLibCheck",
424
+ expected: "(boolean | undefined)",
425
+ value: input.skipDefaultLibCheck
426
+ })) && $predicate(undefined === input.sourceMap || "boolean" === typeof input.sourceMap, exceptionable, () => ({
427
+ path: path + ".sourceMap",
428
+ expected: "(boolean | undefined)",
429
+ value: input.sourceMap
430
+ })) && $predicate(undefined === input.sourceRoot || "string" === typeof input.sourceRoot, exceptionable, () => ({
431
+ path: path + ".sourceRoot",
432
+ expected: "(string | undefined)",
433
+ value: input.sourceRoot
434
+ })) && $predicate(undefined === input.strict || "boolean" === typeof input.strict, exceptionable, () => ({
435
+ path: path + ".strict",
436
+ expected: "(boolean | undefined)",
437
+ value: input.strict
438
+ })) && $predicate(undefined === input.strictFunctionTypes || "boolean" === typeof input.strictFunctionTypes, exceptionable, () => ({
439
+ path: path + ".strictFunctionTypes",
440
+ expected: "(boolean | undefined)",
441
+ value: input.strictFunctionTypes
442
+ })) && $predicate(undefined === input.strictBindCallApply || "boolean" === typeof input.strictBindCallApply, exceptionable, () => ({
443
+ path: path + ".strictBindCallApply",
444
+ expected: "(boolean | undefined)",
445
+ value: input.strictBindCallApply
446
+ })) && $predicate(undefined === input.strictNullChecks || "boolean" === typeof input.strictNullChecks, exceptionable, () => ({
447
+ path: path + ".strictNullChecks",
448
+ expected: "(boolean | undefined)",
449
+ value: input.strictNullChecks
450
+ })) && $predicate(undefined === input.strictPropertyInitialization || "boolean" === typeof input.strictPropertyInitialization, exceptionable, () => ({
451
+ path: path + ".strictPropertyInitialization",
452
+ expected: "(boolean | undefined)",
453
+ value: input.strictPropertyInitialization
454
+ })) && $predicate(undefined === input.stripInternal || "boolean" === typeof input.stripInternal, exceptionable, () => ({
455
+ path: path + ".stripInternal",
456
+ expected: "(boolean | undefined)",
457
+ value: input.stripInternal
458
+ })) && $predicate(undefined === input.suppressExcessPropertyErrors || "boolean" === typeof input.suppressExcessPropertyErrors, exceptionable, () => ({
459
+ path: path + ".suppressExcessPropertyErrors",
460
+ expected: "(boolean | undefined)",
461
+ value: input.suppressExcessPropertyErrors
462
+ })) && $predicate(undefined === input.suppressImplicitAnyIndexErrors || "boolean" === typeof input.suppressImplicitAnyIndexErrors, exceptionable, () => ({
463
+ path: path + ".suppressImplicitAnyIndexErrors",
464
+ expected: "(boolean | undefined)",
465
+ value: input.suppressImplicitAnyIndexErrors
466
+ })) && true && $predicate(undefined === input.traceResolution || "boolean" === typeof input.traceResolution, exceptionable, () => ({
467
+ path: path + ".traceResolution",
468
+ expected: "(boolean | undefined)",
469
+ value: input.traceResolution
470
+ })) && $predicate(undefined === input.useUnknownInCatchVariables || "boolean" === typeof input.useUnknownInCatchVariables, exceptionable, () => ({
471
+ path: path + ".useUnknownInCatchVariables",
472
+ expected: "(boolean | undefined)",
473
+ value: input.useUnknownInCatchVariables
474
+ })) && $predicate(undefined === input.resolveJsonModule || "boolean" === typeof input.resolveJsonModule, exceptionable, () => ({
475
+ path: path + ".resolveJsonModule",
476
+ expected: "(boolean | undefined)",
477
+ value: input.resolveJsonModule
478
+ })) && $predicate(undefined === input.types || Array.isArray(input.types) && input.types.every((elem, index7) => $predicate("string" === typeof elem, exceptionable, () => ({
479
+ path: path + ".types[" + index7 + "]",
480
+ expected: "string",
481
+ value: elem
482
+ }))), exceptionable, () => ({
483
+ path: path + ".types",
484
+ expected: "(Array<string> | undefined)",
485
+ value: input.types
486
+ })) && $predicate(undefined === input.typeRoots || Array.isArray(input.typeRoots) && input.typeRoots.every((elem, index8) => $predicate("string" === typeof elem, exceptionable, () => ({
487
+ path: path + ".typeRoots[" + index8 + "]",
488
+ expected: "string",
489
+ value: elem
490
+ }))), exceptionable, () => ({
491
+ path: path + ".typeRoots",
492
+ expected: "(Array<string> | undefined)",
493
+ value: input.typeRoots
494
+ })) && $predicate(undefined === input.esModuleInterop || "boolean" === typeof input.esModuleInterop, exceptionable, () => ({
495
+ path: path + ".esModuleInterop",
496
+ expected: "(boolean | undefined)",
497
+ value: input.esModuleInterop
498
+ })) && $predicate(undefined === input.useDefineForClassFields || "boolean" === typeof input.useDefineForClassFields, exceptionable, () => ({
499
+ path: path + ".useDefineForClassFields",
500
+ expected: "(boolean | undefined)",
501
+ value: input.useDefineForClassFields
502
+ })),
503
+ (input, path, exceptionable) => true,
504
+ (input, path, exceptionable) => $predicate("string" === typeof input.output, exceptionable, () => ({
505
+ path: path + ".output",
506
+ expected: "string",
507
+ value: input.output
508
+ }))
509
+ ];
510
+ return $predicate(null !== input && $predicate("object" === typeof input && null !== input && $ao[0](input, path + "", true), true, () => ({
511
+ path: path + "",
512
+ expected: "Resolve<__type>",
513
+ value: input
514
+ })), true, () => ({
515
+ path: path + "",
516
+ expected: "Resolve<__type>",
517
+ value: input
518
+ }));
519
+ })(input); return input; })(nestia_fetcher_1.Primitive.clone(config));
520
+ }));
521
+ })(NestiaConfig = exports.NestiaConfig || (exports.NestiaConfig = {}));
522
522
  //# sourceMappingURL=NestiaConfig.js.map