nestia 2.1.13 → 2.2.0-dev.20220625
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +28 -29
- package/lib/IConfiguration.d.ts +5 -6
- package/lib/NestiaApplication.d.ts +0 -1
- package/lib/analyses/ControllerAnalyzer.d.ts +0 -1
- package/lib/analyses/GenericAnalyzer.d.ts +0 -1
- package/lib/analyses/ImportAnalyzer.d.ts +2 -3
- package/lib/analyses/ImportAnalyzer.js +3 -2
- package/lib/analyses/ReflectAnalyzer.d.ts +0 -1
- package/lib/analyses/SourceFinder.d.ts +0 -1
- package/lib/executable/internal/CompilerOptions.d.ts +0 -1
- package/lib/executable/internal/CompilerOptions.js +1 -1
- package/lib/executable/internal/NestiaCommand.d.ts +0 -1
- package/lib/executable/internal/NestiaConfig.d.ts +0 -1
- package/lib/executable/internal/NestiaConfig.js +572 -184
- package/lib/executable/internal/nestia.config.getter.d.ts +0 -1
- package/lib/executable/nestia.d.ts +0 -1
- package/lib/executable/nestia.js +1 -1
- package/lib/generates/FileGenerator.d.ts +0 -1
- package/lib/generates/FileGenerator.js +3 -5
- package/lib/generates/FunctionGenerator.d.ts +0 -1
- package/lib/generates/FunctionGenerator.js +7 -9
- package/lib/generates/SdkGenerator.d.ts +0 -1
- package/lib/generates/SwaggerGenerator.d.ts +0 -1
- package/lib/generates/SwaggerGenerator.js +38 -21
- package/lib/index.d.ts +0 -1
- package/lib/module.d.ts +0 -1
- package/lib/structures/IController.d.ts +0 -1
- package/lib/structures/IRoute.d.ts +3 -4
- package/lib/structures/ISwagger.d.ts +0 -1
- package/lib/structures/ITypeTuple.d.ts +5 -0
- package/lib/structures/{IMetadata.js → ITypeTuple.js} +1 -1
- package/lib/structures/MethodType.d.ts +0 -1
- package/lib/structures/ParamCategory.d.ts +0 -1
- package/lib/structures/TypeEntry.d.ts +0 -1
- package/lib/utils/ArrayUtil.d.ts +0 -1
- package/lib/utils/DirectoryUtil.d.ts +0 -1
- package/lib/utils/ImportDictionary.d.ts +0 -1
- package/lib/utils/MapUtil.d.ts +0 -1
- package/lib/utils/StringUtil.d.ts +0 -1
- package/package.json +4 -5
- package/lib/IConfiguration.d.ts.map +0 -1
- package/lib/NestiaApplication.d.ts.map +0 -1
- package/lib/analyses/ControllerAnalyzer.d.ts.map +0 -1
- package/lib/analyses/GenericAnalyzer.d.ts.map +0 -1
- package/lib/analyses/ImportAnalyzer.d.ts.map +0 -1
- package/lib/analyses/ReflectAnalyzer.d.ts.map +0 -1
- package/lib/analyses/SourceFinder.d.ts.map +0 -1
- package/lib/executable/internal/CompilerOptions.d.ts.map +0 -1
- package/lib/executable/internal/NestiaCommand.d.ts.map +0 -1
- package/lib/executable/internal/NestiaConfig.d.ts.map +0 -1
- package/lib/executable/internal/nestia.config.getter.d.ts.map +0 -1
- package/lib/executable/nestia.d.ts.map +0 -1
- package/lib/factories/TypeFactry.d.ts +0 -7
- package/lib/factories/TypeFactry.d.ts.map +0 -1
- package/lib/factories/TypeFactry.js +0 -81
- package/lib/generates/FileGenerator.d.ts.map +0 -1
- package/lib/generates/FunctionGenerator.d.ts.map +0 -1
- package/lib/generates/SdkGenerator.d.ts.map +0 -1
- package/lib/generates/SwaggerGenerator.d.ts.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/module.d.ts.map +0 -1
- package/lib/structures/IController.d.ts.map +0 -1
- package/lib/structures/IMetadata.d.ts +0 -21
- package/lib/structures/IMetadata.d.ts.map +0 -1
- package/lib/structures/IRoute.d.ts.map +0 -1
- package/lib/structures/ISwagger.d.ts.map +0 -1
- package/lib/structures/IType.d.ts +0 -6
- package/lib/structures/IType.d.ts.map +0 -1
- package/lib/structures/IType.js +0 -3
- package/lib/structures/MethodType.d.ts.map +0 -1
- package/lib/structures/ParamCategory.d.ts.map +0 -1
- package/lib/structures/TypeEntry.d.ts.map +0 -1
- package/lib/utils/ArrayUtil.d.ts.map +0 -1
- package/lib/utils/DirectoryUtil.d.ts.map +0 -1
- package/lib/utils/ImportDictionary.d.ts.map +0 -1
- package/lib/utils/MapUtil.d.ts.map +0 -1
- package/lib/utils/StringUtil.d.ts.map +0 -1
|
@@ -58,17 +58,6 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
58
58
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
|
-
var __values = (this && this.__values) || function(o) {
|
|
62
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
63
|
-
if (m) return m.call(o);
|
|
64
|
-
if (o && typeof o.length === "number") return {
|
|
65
|
-
next: function () {
|
|
66
|
-
if (o && i >= o.length) o = void 0;
|
|
67
|
-
return { value: o && o[i++], done: !o };
|
|
68
|
-
}
|
|
69
|
-
};
|
|
70
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
71
|
-
};
|
|
72
61
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
73
62
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
74
63
|
};
|
|
@@ -77,10 +66,9 @@ exports.NestiaConfig = void 0;
|
|
|
77
66
|
var fs_1 = __importDefault(require("fs"));
|
|
78
67
|
var path_1 = __importDefault(require("path"));
|
|
79
68
|
var runner = __importStar(require("ts-node"));
|
|
80
|
-
var InvalidArgument_1 = require("tstl/exception/InvalidArgument");
|
|
81
69
|
var nestia_fetcher_1 = require("nestia-fetcher");
|
|
82
70
|
var Singleton_1 = require("tstl/thread/Singleton");
|
|
83
|
-
var
|
|
71
|
+
var typescript_json_1 = require("typescript-json");
|
|
84
72
|
var NestiaConfig;
|
|
85
73
|
(function (NestiaConfig) {
|
|
86
74
|
var _this = this;
|
|
@@ -88,166 +76,8 @@ var NestiaConfig;
|
|
|
88
76
|
return singleton.get();
|
|
89
77
|
}
|
|
90
78
|
NestiaConfig.get = get;
|
|
91
|
-
function assert(config) {
|
|
92
|
-
(0, typescript_is_1.assertType)(config, function (object) { var path = ["config"]; function _undefined(object) { ; if (object !== undefined)
|
|
93
|
-
return { message: "validation failed at " + path.join(".") + ": expected undefined", path: path.slice(), reason: { type: "undefined" } };
|
|
94
|
-
else
|
|
95
|
-
return null; } function _string(object) { ; if (typeof object !== "string")
|
|
96
|
-
return { message: "validation failed at " + path.join(".") + ": expected a string", path: path.slice(), reason: { type: "string" } };
|
|
97
|
-
else
|
|
98
|
-
return null; } function _null(object) { ; if (object !== null)
|
|
99
|
-
return { message: "validation failed at " + path.join(".") + ": expected null", path: path.slice(), reason: { type: "null" } };
|
|
100
|
-
else
|
|
101
|
-
return null; } function su__undefined__string_eu(object) {
|
|
102
|
-
var e_1, _a;
|
|
103
|
-
var conditions = [_undefined, _string];
|
|
104
|
-
try {
|
|
105
|
-
for (var conditions_1 = __values(conditions), conditions_1_1 = conditions_1.next(); !conditions_1_1.done; conditions_1_1 = conditions_1.next()) {
|
|
106
|
-
var condition = conditions_1_1.value;
|
|
107
|
-
var error = condition(object);
|
|
108
|
-
if (!error)
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
113
|
-
finally {
|
|
114
|
-
try {
|
|
115
|
-
if (conditions_1_1 && !conditions_1_1.done && (_a = conditions_1.return)) _a.call(conditions_1);
|
|
116
|
-
}
|
|
117
|
-
finally { if (e_1) throw e_1.error; }
|
|
118
|
-
}
|
|
119
|
-
return { message: "validation failed at " + path.join(".") + ": there are no valid alternatives", path: path.slice(), reason: { type: "union" } };
|
|
120
|
-
} function _false(object) { ; if (object !== false)
|
|
121
|
-
return { message: "validation failed at " + path.join(".") + ": expected false", path: path.slice(), reason: { type: "boolean-literal", value: false } };
|
|
122
|
-
else
|
|
123
|
-
return null; } function _true(object) { ; if (object !== true)
|
|
124
|
-
return { message: "validation failed at " + path.join(".") + ": expected true", path: path.slice(), reason: { type: "boolean-literal", value: true } };
|
|
125
|
-
else
|
|
126
|
-
return null; } function su__undefined__5__6_eu(object) {
|
|
127
|
-
var e_2, _a;
|
|
128
|
-
var conditions = [_undefined, _false, _true];
|
|
129
|
-
try {
|
|
130
|
-
for (var conditions_2 = __values(conditions), conditions_2_1 = conditions_2.next(); !conditions_2_1.done; conditions_2_1 = conditions_2.next()) {
|
|
131
|
-
var condition = conditions_2_1.value;
|
|
132
|
-
var error = condition(object);
|
|
133
|
-
if (!error)
|
|
134
|
-
return null;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
138
|
-
finally {
|
|
139
|
-
try {
|
|
140
|
-
if (conditions_2_1 && !conditions_2_1.done && (_a = conditions_2.return)) _a.call(conditions_2);
|
|
141
|
-
}
|
|
142
|
-
finally { if (e_2) throw e_2.error; }
|
|
143
|
-
}
|
|
144
|
-
return { message: "validation failed at " + path.join(".") + ": there are no valid alternatives", path: path.slice(), reason: { type: "union" } };
|
|
145
|
-
} function _8(object) { ; if (typeof object !== "object" || object === null || Array.isArray(object))
|
|
146
|
-
return { message: "validation failed at " + path.join(".") + ": expected an object", path: path.slice(), reason: { type: "object" } }; {
|
|
147
|
-
if ("output" in object) {
|
|
148
|
-
path.push("output");
|
|
149
|
-
var error = _string(object["output"]);
|
|
150
|
-
path.pop();
|
|
151
|
-
if (error)
|
|
152
|
-
return error;
|
|
153
|
-
}
|
|
154
|
-
else
|
|
155
|
-
return { message: "validation failed at " + path.join(".") + ": expected 'output' in object", path: path.slice(), reason: { type: "missing-property", property: "output" } };
|
|
156
|
-
} return null; } function su__undefined__8_eu(object) {
|
|
157
|
-
var e_3, _a;
|
|
158
|
-
var conditions = [_undefined, _8];
|
|
159
|
-
try {
|
|
160
|
-
for (var conditions_3 = __values(conditions), conditions_3_1 = conditions_3.next(); !conditions_3_1.done; conditions_3_1 = conditions_3.next()) {
|
|
161
|
-
var condition = conditions_3_1.value;
|
|
162
|
-
var error = condition(object);
|
|
163
|
-
if (!error)
|
|
164
|
-
return null;
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
168
|
-
finally {
|
|
169
|
-
try {
|
|
170
|
-
if (conditions_3_1 && !conditions_3_1.done && (_a = conditions_3.return)) _a.call(conditions_3);
|
|
171
|
-
}
|
|
172
|
-
finally { if (e_3) throw e_3.error; }
|
|
173
|
-
}
|
|
174
|
-
return { message: "validation failed at " + path.join(".") + ": there are no valid alternatives", path: path.slice(), reason: { type: "union" } };
|
|
175
|
-
} function _0(object) { ; if (typeof object !== "object" || object === null || Array.isArray(object))
|
|
176
|
-
return { message: "validation failed at " + path.join(".") + ": expected an object", path: path.slice(), reason: { type: "object" } }; {
|
|
177
|
-
if ("output" in object) {
|
|
178
|
-
path.push("output");
|
|
179
|
-
var error = su__undefined__string_eu(object["output"]);
|
|
180
|
-
path.pop();
|
|
181
|
-
if (error)
|
|
182
|
-
return error;
|
|
183
|
-
}
|
|
184
|
-
} {
|
|
185
|
-
if ("assert" in object) {
|
|
186
|
-
path.push("assert");
|
|
187
|
-
var error = su__undefined__5__6_eu(object["assert"]);
|
|
188
|
-
path.pop();
|
|
189
|
-
if (error)
|
|
190
|
-
return error;
|
|
191
|
-
}
|
|
192
|
-
} {
|
|
193
|
-
if ("json" in object) {
|
|
194
|
-
path.push("json");
|
|
195
|
-
var error = su__undefined__5__6_eu(object["json"]);
|
|
196
|
-
path.pop();
|
|
197
|
-
if (error)
|
|
198
|
-
return error;
|
|
199
|
-
}
|
|
200
|
-
} {
|
|
201
|
-
if ("swagger" in object) {
|
|
202
|
-
path.push("swagger");
|
|
203
|
-
var error = su__undefined__8_eu(object["swagger"]);
|
|
204
|
-
path.pop();
|
|
205
|
-
if (error)
|
|
206
|
-
return error;
|
|
207
|
-
}
|
|
208
|
-
} return null; } return _0(object); });
|
|
209
|
-
if ((0, typescript_is_1.is)(config.input, function (object) { function _string(object) { ; if (typeof object !== "string")
|
|
210
|
-
return {};
|
|
211
|
-
else
|
|
212
|
-
return null; } return _string(object); }) === false &&
|
|
213
|
-
(0, typescript_is_1.is)(config.input, function (object) { function _string(object) { ; if (typeof object !== "string")
|
|
214
|
-
return {};
|
|
215
|
-
else
|
|
216
|
-
return null; } function sa__string_ea_2(object) { ; if (!Array.isArray(object))
|
|
217
|
-
return {}; for (var i = 0; i < object.length; i++) {
|
|
218
|
-
var error = _string(object[i]);
|
|
219
|
-
if (error)
|
|
220
|
-
return error;
|
|
221
|
-
} return null; } return sa__string_ea_2(object); }) === false &&
|
|
222
|
-
(0, typescript_is_1.is)(config.input, function (object) { function _string(object) { ; if (typeof object !== "string")
|
|
223
|
-
return {};
|
|
224
|
-
else
|
|
225
|
-
return null; } function sa__string_ea_3(object) { ; if (!Array.isArray(object))
|
|
226
|
-
return {}; for (var i = 0; i < object.length; i++) {
|
|
227
|
-
var error = _string(object[i]);
|
|
228
|
-
if (error)
|
|
229
|
-
return error;
|
|
230
|
-
} return null; } function _0(object) { ; if (typeof object !== "object" || object === null || Array.isArray(object))
|
|
231
|
-
return {}; {
|
|
232
|
-
if ("include" in object) {
|
|
233
|
-
var error = sa__string_ea_3(object["include"]);
|
|
234
|
-
if (error)
|
|
235
|
-
return error;
|
|
236
|
-
}
|
|
237
|
-
else
|
|
238
|
-
return {};
|
|
239
|
-
} {
|
|
240
|
-
if ("exclude" in object) {
|
|
241
|
-
var error = sa__string_ea_3(object["exclude"]);
|
|
242
|
-
if (error)
|
|
243
|
-
return error;
|
|
244
|
-
}
|
|
245
|
-
} return null; } return _0(object); }) === false)
|
|
246
|
-
throw new InvalidArgument_1.InvalidArgument("Error on NestiaConfig.get(): invalid input type.");
|
|
247
|
-
return config;
|
|
248
|
-
}
|
|
249
79
|
var singleton = new Singleton_1.Singleton(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
250
|
-
var
|
|
80
|
+
var loaded, config;
|
|
251
81
|
return __generator(this, function (_a) {
|
|
252
82
|
switch (_a.label) {
|
|
253
83
|
case 0:
|
|
@@ -261,18 +91,576 @@ var NestiaConfig;
|
|
|
261
91
|
});
|
|
262
92
|
return [4 /*yield*/, Promise.resolve().then(function () { return __importStar(require(path_1.default.resolve("nestia.config.ts"))); })];
|
|
263
93
|
case 1:
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
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 assert = [
|
|
101
|
+
function (input, path, exceptionable) { return true && (true && null !== input.input && undefined !== input.input && (false || typeof input.input === "string" || Array.isArray(input.input) && (false || input.input.every(function (elem, index) { return true && null !== elem && undefined !== elem && typeof elem === "string"; })) || true && null !== input.input && typeof input.input === "object" && assert[1](input.input, path + ".input", false && exceptionable))) && (function () {
|
|
102
|
+
var success = true && null !== input.output && (false || undefined === input.output || typeof input.output === "string");
|
|
103
|
+
if (success === false && exceptionable === true)
|
|
104
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".output\"", input.output);
|
|
105
|
+
return success;
|
|
106
|
+
})() && (function () {
|
|
107
|
+
var success = true && null !== input.compilerOptions && (false || undefined === input.compilerOptions || true && null !== input.compilerOptions && typeof input.compilerOptions === "object" && assert[2](input.compilerOptions, path + ".compilerOptions", true && exceptionable));
|
|
108
|
+
if (success === false && exceptionable === true)
|
|
109
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".compilerOptions\"", input.compilerOptions);
|
|
110
|
+
return success;
|
|
111
|
+
})() && (function () {
|
|
112
|
+
var success = true && null !== input.assert && (false || undefined === input.assert || false === input.assert || true === input.assert);
|
|
113
|
+
if (success === false && exceptionable === true)
|
|
114
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".assert\"", input.assert);
|
|
115
|
+
return success;
|
|
116
|
+
})() && (function () {
|
|
117
|
+
var success = true && null !== input.json && (false || undefined === input.json || false === input.json || true === input.json);
|
|
118
|
+
if (success === false && exceptionable === true)
|
|
119
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".json\"", input.json);
|
|
120
|
+
return success;
|
|
121
|
+
})() && (function () {
|
|
122
|
+
var success = true && null !== input.swagger && (false || undefined === input.swagger || true && null !== input.swagger && typeof input.swagger === "object" && assert[4](input.swagger, path + ".swagger", true && exceptionable));
|
|
123
|
+
if (success === false && exceptionable === true)
|
|
124
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".swagger\"", input.swagger);
|
|
125
|
+
return success;
|
|
126
|
+
})(); },
|
|
127
|
+
function (input, path, exceptionable) { return true && (function () {
|
|
128
|
+
var success = true && null !== input.include && undefined !== input.include && (Array.isArray(input.include) && (false || input.include.every(function (elem, index) { return (function () {
|
|
129
|
+
var success = true && null !== elem && undefined !== elem && typeof elem === "string";
|
|
130
|
+
if (success === false && exceptionable === true)
|
|
131
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".include[\" + index + \"]\"", elem);
|
|
132
|
+
return success;
|
|
133
|
+
})(); })));
|
|
134
|
+
if (success === false && exceptionable === true)
|
|
135
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".include\"", input.include);
|
|
136
|
+
return success;
|
|
137
|
+
})() && (function () {
|
|
138
|
+
var success = true && null !== input.exclude && (false || undefined === input.exclude || Array.isArray(input.exclude) && (false || input.exclude.every(function (elem, index) { return (function () {
|
|
139
|
+
var success = true && null !== elem && undefined !== elem && typeof elem === "string";
|
|
140
|
+
if (success === false && exceptionable === true)
|
|
141
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".exclude[\" + index + \"]\"", elem);
|
|
142
|
+
return success;
|
|
143
|
+
})(); })));
|
|
144
|
+
if (success === false && exceptionable === true)
|
|
145
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".exclude\"", input.exclude);
|
|
146
|
+
return success;
|
|
147
|
+
})(); },
|
|
148
|
+
function (input, path, exceptionable) { return true && (function () {
|
|
149
|
+
var success = true && null !== input.allowJs && (false || undefined === input.allowJs || false === input.allowJs || true === input.allowJs);
|
|
150
|
+
if (success === false && exceptionable === true)
|
|
151
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".allowJs\"", input.allowJs);
|
|
152
|
+
return success;
|
|
153
|
+
})() && (function () {
|
|
154
|
+
var success = true && null !== input.allowSyntheticDefaultImports && (false || undefined === input.allowSyntheticDefaultImports || false === input.allowSyntheticDefaultImports || true === input.allowSyntheticDefaultImports);
|
|
155
|
+
if (success === false && exceptionable === true)
|
|
156
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".allowSyntheticDefaultImports\"", input.allowSyntheticDefaultImports);
|
|
157
|
+
return success;
|
|
158
|
+
})() && (function () {
|
|
159
|
+
var success = true && null !== input.allowUmdGlobalAccess && (false || undefined === input.allowUmdGlobalAccess || false === input.allowUmdGlobalAccess || true === input.allowUmdGlobalAccess);
|
|
160
|
+
if (success === false && exceptionable === true)
|
|
161
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".allowUmdGlobalAccess\"", input.allowUmdGlobalAccess);
|
|
162
|
+
return success;
|
|
163
|
+
})() && (function () {
|
|
164
|
+
var success = true && null !== input.allowUnreachableCode && (false || undefined === input.allowUnreachableCode || false === input.allowUnreachableCode || true === input.allowUnreachableCode);
|
|
165
|
+
if (success === false && exceptionable === true)
|
|
166
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".allowUnreachableCode\"", input.allowUnreachableCode);
|
|
167
|
+
return success;
|
|
168
|
+
})() && (function () {
|
|
169
|
+
var success = true && null !== input.allowUnusedLabels && (false || undefined === input.allowUnusedLabels || false === input.allowUnusedLabels || true === input.allowUnusedLabels);
|
|
170
|
+
if (success === false && exceptionable === true)
|
|
171
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".allowUnusedLabels\"", input.allowUnusedLabels);
|
|
172
|
+
return success;
|
|
173
|
+
})() && (function () {
|
|
174
|
+
var success = true && null !== input.alwaysStrict && (false || undefined === input.alwaysStrict || false === input.alwaysStrict || true === input.alwaysStrict);
|
|
175
|
+
if (success === false && exceptionable === true)
|
|
176
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".alwaysStrict\"", input.alwaysStrict);
|
|
177
|
+
return success;
|
|
178
|
+
})() && (function () {
|
|
179
|
+
var success = true && null !== input.baseUrl && (false || undefined === input.baseUrl || typeof input.baseUrl === "string");
|
|
180
|
+
if (success === false && exceptionable === true)
|
|
181
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".baseUrl\"", input.baseUrl);
|
|
182
|
+
return success;
|
|
183
|
+
})() && (function () {
|
|
184
|
+
var success = true && null !== input.charset && (false || undefined === input.charset || typeof input.charset === "string");
|
|
185
|
+
if (success === false && exceptionable === true)
|
|
186
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".charset\"", input.charset);
|
|
187
|
+
return success;
|
|
188
|
+
})() && (function () {
|
|
189
|
+
var success = true && null !== input.checkJs && (false || undefined === input.checkJs || false === input.checkJs || true === input.checkJs);
|
|
190
|
+
if (success === false && exceptionable === true)
|
|
191
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".checkJs\"", input.checkJs);
|
|
192
|
+
return success;
|
|
193
|
+
})() && (function () {
|
|
194
|
+
var success = true && null !== input.declaration && (false || undefined === input.declaration || false === input.declaration || true === input.declaration);
|
|
195
|
+
if (success === false && exceptionable === true)
|
|
196
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".declaration\"", input.declaration);
|
|
197
|
+
return success;
|
|
198
|
+
})() && (function () {
|
|
199
|
+
var success = true && null !== input.declarationMap && (false || undefined === input.declarationMap || false === input.declarationMap || true === input.declarationMap);
|
|
200
|
+
if (success === false && exceptionable === true)
|
|
201
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".declarationMap\"", input.declarationMap);
|
|
202
|
+
return success;
|
|
203
|
+
})() && (function () {
|
|
204
|
+
var success = true && null !== input.emitDeclarationOnly && (false || undefined === input.emitDeclarationOnly || false === input.emitDeclarationOnly || true === input.emitDeclarationOnly);
|
|
205
|
+
if (success === false && exceptionable === true)
|
|
206
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".emitDeclarationOnly\"", input.emitDeclarationOnly);
|
|
207
|
+
return success;
|
|
208
|
+
})() && (function () {
|
|
209
|
+
var success = true && null !== input.declarationDir && (false || undefined === input.declarationDir || typeof input.declarationDir === "string");
|
|
210
|
+
if (success === false && exceptionable === true)
|
|
211
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".declarationDir\"", input.declarationDir);
|
|
212
|
+
return success;
|
|
213
|
+
})() && (function () {
|
|
214
|
+
var success = true && null !== input.disableSizeLimit && (false || undefined === input.disableSizeLimit || false === input.disableSizeLimit || true === input.disableSizeLimit);
|
|
215
|
+
if (success === false && exceptionable === true)
|
|
216
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".disableSizeLimit\"", input.disableSizeLimit);
|
|
217
|
+
return success;
|
|
218
|
+
})() && (function () {
|
|
219
|
+
var success = true && null !== input.disableSourceOfProjectReferenceRedirect && (false || undefined === input.disableSourceOfProjectReferenceRedirect || false === input.disableSourceOfProjectReferenceRedirect || true === input.disableSourceOfProjectReferenceRedirect);
|
|
220
|
+
if (success === false && exceptionable === true)
|
|
221
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".disableSourceOfProjectReferenceRedirect\"", input.disableSourceOfProjectReferenceRedirect);
|
|
222
|
+
return success;
|
|
223
|
+
})() && (function () {
|
|
224
|
+
var success = true && null !== input.disableSolutionSearching && (false || undefined === input.disableSolutionSearching || false === input.disableSolutionSearching || true === input.disableSolutionSearching);
|
|
225
|
+
if (success === false && exceptionable === true)
|
|
226
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".disableSolutionSearching\"", input.disableSolutionSearching);
|
|
227
|
+
return success;
|
|
228
|
+
})() && (function () {
|
|
229
|
+
var success = true && null !== input.disableReferencedProjectLoad && (false || undefined === input.disableReferencedProjectLoad || false === input.disableReferencedProjectLoad || true === input.disableReferencedProjectLoad);
|
|
230
|
+
if (success === false && exceptionable === true)
|
|
231
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".disableReferencedProjectLoad\"", input.disableReferencedProjectLoad);
|
|
232
|
+
return success;
|
|
233
|
+
})() && (function () {
|
|
234
|
+
var success = true && null !== input.downlevelIteration && (false || undefined === input.downlevelIteration || false === input.downlevelIteration || true === input.downlevelIteration);
|
|
235
|
+
if (success === false && exceptionable === true)
|
|
236
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".downlevelIteration\"", input.downlevelIteration);
|
|
237
|
+
return success;
|
|
238
|
+
})() && (function () {
|
|
239
|
+
var success = true && null !== input.emitBOM && (false || undefined === input.emitBOM || false === input.emitBOM || true === input.emitBOM);
|
|
240
|
+
if (success === false && exceptionable === true)
|
|
241
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".emitBOM\"", input.emitBOM);
|
|
242
|
+
return success;
|
|
243
|
+
})() && (function () {
|
|
244
|
+
var success = true && null !== input.emitDecoratorMetadata && (false || undefined === input.emitDecoratorMetadata || false === input.emitDecoratorMetadata || true === input.emitDecoratorMetadata);
|
|
245
|
+
if (success === false && exceptionable === true)
|
|
246
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".emitDecoratorMetadata\"", input.emitDecoratorMetadata);
|
|
247
|
+
return success;
|
|
248
|
+
})() && (function () {
|
|
249
|
+
var success = true && null !== input.exactOptionalPropertyTypes && (false || undefined === input.exactOptionalPropertyTypes || false === input.exactOptionalPropertyTypes || true === input.exactOptionalPropertyTypes);
|
|
250
|
+
if (success === false && exceptionable === true)
|
|
251
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".exactOptionalPropertyTypes\"", input.exactOptionalPropertyTypes);
|
|
252
|
+
return success;
|
|
253
|
+
})() && (function () {
|
|
254
|
+
var success = true && null !== input.experimentalDecorators && (false || undefined === input.experimentalDecorators || false === input.experimentalDecorators || true === input.experimentalDecorators);
|
|
255
|
+
if (success === false && exceptionable === true)
|
|
256
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".experimentalDecorators\"", input.experimentalDecorators);
|
|
257
|
+
return success;
|
|
258
|
+
})() && (function () {
|
|
259
|
+
var success = true && null !== input.forceConsistentCasingInFileNames && (false || undefined === input.forceConsistentCasingInFileNames || false === input.forceConsistentCasingInFileNames || true === input.forceConsistentCasingInFileNames);
|
|
260
|
+
if (success === false && exceptionable === true)
|
|
261
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".forceConsistentCasingInFileNames\"", input.forceConsistentCasingInFileNames);
|
|
262
|
+
return success;
|
|
263
|
+
})() && (function () {
|
|
264
|
+
var success = true && null !== input.importHelpers && (false || undefined === input.importHelpers || false === input.importHelpers || true === input.importHelpers);
|
|
265
|
+
if (success === false && exceptionable === true)
|
|
266
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".importHelpers\"", input.importHelpers);
|
|
267
|
+
return success;
|
|
268
|
+
})() && (function () {
|
|
269
|
+
var success = true && null !== input.importsNotUsedAsValues && (false || undefined === input.importsNotUsedAsValues || 0 === input.importsNotUsedAsValues || 1 === input.importsNotUsedAsValues || 2 === input.importsNotUsedAsValues);
|
|
270
|
+
if (success === false && exceptionable === true)
|
|
271
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".importsNotUsedAsValues\"", input.importsNotUsedAsValues);
|
|
272
|
+
return success;
|
|
273
|
+
})() && (function () {
|
|
274
|
+
var success = true && null !== input.inlineSourceMap && (false || undefined === input.inlineSourceMap || false === input.inlineSourceMap || true === input.inlineSourceMap);
|
|
275
|
+
if (success === false && exceptionable === true)
|
|
276
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".inlineSourceMap\"", input.inlineSourceMap);
|
|
277
|
+
return success;
|
|
278
|
+
})() && (function () {
|
|
279
|
+
var success = true && null !== input.inlineSources && (false || undefined === input.inlineSources || false === input.inlineSources || true === input.inlineSources);
|
|
280
|
+
if (success === false && exceptionable === true)
|
|
281
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".inlineSources\"", input.inlineSources);
|
|
282
|
+
return success;
|
|
283
|
+
})() && (function () {
|
|
284
|
+
var success = true && null !== input.isolatedModules && (false || undefined === input.isolatedModules || false === input.isolatedModules || true === input.isolatedModules);
|
|
285
|
+
if (success === false && exceptionable === true)
|
|
286
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".isolatedModules\"", input.isolatedModules);
|
|
287
|
+
return success;
|
|
288
|
+
})() && (function () {
|
|
289
|
+
var success = true && null !== input.jsx && (false || undefined === input.jsx || 0 === input.jsx || 1 === input.jsx || 2 === input.jsx || 3 === input.jsx || 4 === input.jsx || 5 === input.jsx);
|
|
290
|
+
if (success === false && exceptionable === true)
|
|
291
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".jsx\"", input.jsx);
|
|
292
|
+
return success;
|
|
293
|
+
})() && (function () {
|
|
294
|
+
var success = true && null !== input.keyofStringsOnly && (false || undefined === input.keyofStringsOnly || false === input.keyofStringsOnly || true === input.keyofStringsOnly);
|
|
295
|
+
if (success === false && exceptionable === true)
|
|
296
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".keyofStringsOnly\"", input.keyofStringsOnly);
|
|
297
|
+
return success;
|
|
298
|
+
})() && (function () {
|
|
299
|
+
var success = true && null !== input.lib && (false || undefined === input.lib || Array.isArray(input.lib) && (false || input.lib.every(function (elem, index) { return (function () {
|
|
300
|
+
var success = true && null !== elem && undefined !== elem && typeof elem === "string";
|
|
301
|
+
if (success === false && exceptionable === true)
|
|
302
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".lib[\" + index + \"]\"", elem);
|
|
303
|
+
return success;
|
|
304
|
+
})(); })));
|
|
305
|
+
if (success === false && exceptionable === true)
|
|
306
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".lib\"", input.lib);
|
|
307
|
+
return success;
|
|
308
|
+
})() && (function () {
|
|
309
|
+
var success = true && null !== input.locale && (false || undefined === input.locale || typeof input.locale === "string");
|
|
310
|
+
if (success === false && exceptionable === true)
|
|
311
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".locale\"", input.locale);
|
|
312
|
+
return success;
|
|
313
|
+
})() && (function () {
|
|
314
|
+
var success = true && null !== input.mapRoot && (false || undefined === input.mapRoot || typeof input.mapRoot === "string");
|
|
315
|
+
if (success === false && exceptionable === true)
|
|
316
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".mapRoot\"", input.mapRoot);
|
|
317
|
+
return success;
|
|
318
|
+
})() && (function () {
|
|
319
|
+
var success = true && null !== input.maxNodeModuleJsDepth && (false || undefined === input.maxNodeModuleJsDepth || typeof input.maxNodeModuleJsDepth === "number");
|
|
320
|
+
if (success === false && exceptionable === true)
|
|
321
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".maxNodeModuleJsDepth\"", input.maxNodeModuleJsDepth);
|
|
322
|
+
return success;
|
|
323
|
+
})() && (function () {
|
|
324
|
+
var success = true && null !== input.module && (false || 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);
|
|
325
|
+
if (success === false && exceptionable === true)
|
|
326
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".module\"", input.module);
|
|
327
|
+
return success;
|
|
328
|
+
})() && (function () {
|
|
329
|
+
var success = true && null !== input.moduleResolution && (false || undefined === input.moduleResolution || 1 === input.moduleResolution || 2 === input.moduleResolution || 3 === input.moduleResolution || 99 === input.moduleResolution);
|
|
330
|
+
if (success === false && exceptionable === true)
|
|
331
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".moduleResolution\"", input.moduleResolution);
|
|
332
|
+
return success;
|
|
333
|
+
})() && (function () {
|
|
334
|
+
var success = true && null !== input.moduleSuffixes && (false || undefined === input.moduleSuffixes || Array.isArray(input.moduleSuffixes) && (false || input.moduleSuffixes.every(function (elem, index) { return (function () {
|
|
335
|
+
var success = true && null !== elem && undefined !== elem && typeof elem === "string";
|
|
336
|
+
if (success === false && exceptionable === true)
|
|
337
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".moduleSuffixes[\" + index + \"]\"", elem);
|
|
338
|
+
return success;
|
|
339
|
+
})(); })));
|
|
340
|
+
if (success === false && exceptionable === true)
|
|
341
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".moduleSuffixes\"", input.moduleSuffixes);
|
|
342
|
+
return success;
|
|
343
|
+
})() && (function () {
|
|
344
|
+
var success = true && null !== input.moduleDetection && (false || undefined === input.moduleDetection || 1 === input.moduleDetection || 2 === input.moduleDetection || 3 === input.moduleDetection);
|
|
345
|
+
if (success === false && exceptionable === true)
|
|
346
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".moduleDetection\"", input.moduleDetection);
|
|
347
|
+
return success;
|
|
348
|
+
})() && (function () {
|
|
349
|
+
var success = true && null !== input.newLine && (false || undefined === input.newLine || 0 === input.newLine || 1 === input.newLine);
|
|
350
|
+
if (success === false && exceptionable === true)
|
|
351
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".newLine\"", input.newLine);
|
|
352
|
+
return success;
|
|
353
|
+
})() && (function () {
|
|
354
|
+
var success = true && null !== input.noEmit && (false || undefined === input.noEmit || false === input.noEmit || true === input.noEmit);
|
|
355
|
+
if (success === false && exceptionable === true)
|
|
356
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noEmit\"", input.noEmit);
|
|
357
|
+
return success;
|
|
358
|
+
})() && (function () {
|
|
359
|
+
var success = true && null !== input.noEmitHelpers && (false || undefined === input.noEmitHelpers || false === input.noEmitHelpers || true === input.noEmitHelpers);
|
|
360
|
+
if (success === false && exceptionable === true)
|
|
361
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noEmitHelpers\"", input.noEmitHelpers);
|
|
362
|
+
return success;
|
|
363
|
+
})() && (function () {
|
|
364
|
+
var success = true && null !== input.noEmitOnError && (false || undefined === input.noEmitOnError || false === input.noEmitOnError || true === input.noEmitOnError);
|
|
365
|
+
if (success === false && exceptionable === true)
|
|
366
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noEmitOnError\"", input.noEmitOnError);
|
|
367
|
+
return success;
|
|
368
|
+
})() && (function () {
|
|
369
|
+
var success = true && null !== input.noErrorTruncation && (false || undefined === input.noErrorTruncation || false === input.noErrorTruncation || true === input.noErrorTruncation);
|
|
370
|
+
if (success === false && exceptionable === true)
|
|
371
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noErrorTruncation\"", input.noErrorTruncation);
|
|
372
|
+
return success;
|
|
373
|
+
})() && (function () {
|
|
374
|
+
var success = true && null !== input.noFallthroughCasesInSwitch && (false || undefined === input.noFallthroughCasesInSwitch || false === input.noFallthroughCasesInSwitch || true === input.noFallthroughCasesInSwitch);
|
|
375
|
+
if (success === false && exceptionable === true)
|
|
376
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noFallthroughCasesInSwitch\"", input.noFallthroughCasesInSwitch);
|
|
377
|
+
return success;
|
|
378
|
+
})() && (function () {
|
|
379
|
+
var success = true && null !== input.noImplicitAny && (false || undefined === input.noImplicitAny || false === input.noImplicitAny || true === input.noImplicitAny);
|
|
380
|
+
if (success === false && exceptionable === true)
|
|
381
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noImplicitAny\"", input.noImplicitAny);
|
|
382
|
+
return success;
|
|
383
|
+
})() && (function () {
|
|
384
|
+
var success = true && null !== input.noImplicitReturns && (false || undefined === input.noImplicitReturns || false === input.noImplicitReturns || true === input.noImplicitReturns);
|
|
385
|
+
if (success === false && exceptionable === true)
|
|
386
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noImplicitReturns\"", input.noImplicitReturns);
|
|
387
|
+
return success;
|
|
388
|
+
})() && (function () {
|
|
389
|
+
var success = true && null !== input.noImplicitThis && (false || undefined === input.noImplicitThis || false === input.noImplicitThis || true === input.noImplicitThis);
|
|
390
|
+
if (success === false && exceptionable === true)
|
|
391
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noImplicitThis\"", input.noImplicitThis);
|
|
392
|
+
return success;
|
|
393
|
+
})() && (function () {
|
|
394
|
+
var success = true && null !== input.noStrictGenericChecks && (false || undefined === input.noStrictGenericChecks || false === input.noStrictGenericChecks || true === input.noStrictGenericChecks);
|
|
395
|
+
if (success === false && exceptionable === true)
|
|
396
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noStrictGenericChecks\"", input.noStrictGenericChecks);
|
|
397
|
+
return success;
|
|
398
|
+
})() && (function () {
|
|
399
|
+
var success = true && null !== input.noUnusedLocals && (false || undefined === input.noUnusedLocals || false === input.noUnusedLocals || true === input.noUnusedLocals);
|
|
400
|
+
if (success === false && exceptionable === true)
|
|
401
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noUnusedLocals\"", input.noUnusedLocals);
|
|
402
|
+
return success;
|
|
403
|
+
})() && (function () {
|
|
404
|
+
var success = true && null !== input.noUnusedParameters && (false || undefined === input.noUnusedParameters || false === input.noUnusedParameters || true === input.noUnusedParameters);
|
|
405
|
+
if (success === false && exceptionable === true)
|
|
406
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noUnusedParameters\"", input.noUnusedParameters);
|
|
407
|
+
return success;
|
|
408
|
+
})() && (function () {
|
|
409
|
+
var success = true && null !== input.noImplicitUseStrict && (false || undefined === input.noImplicitUseStrict || false === input.noImplicitUseStrict || true === input.noImplicitUseStrict);
|
|
410
|
+
if (success === false && exceptionable === true)
|
|
411
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noImplicitUseStrict\"", input.noImplicitUseStrict);
|
|
412
|
+
return success;
|
|
413
|
+
})() && (function () {
|
|
414
|
+
var success = true && null !== input.noPropertyAccessFromIndexSignature && (false || undefined === input.noPropertyAccessFromIndexSignature || false === input.noPropertyAccessFromIndexSignature || true === input.noPropertyAccessFromIndexSignature);
|
|
415
|
+
if (success === false && exceptionable === true)
|
|
416
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noPropertyAccessFromIndexSignature\"", input.noPropertyAccessFromIndexSignature);
|
|
417
|
+
return success;
|
|
418
|
+
})() && (function () {
|
|
419
|
+
var success = true && null !== input.assumeChangesOnlyAffectDirectDependencies && (false || undefined === input.assumeChangesOnlyAffectDirectDependencies || false === input.assumeChangesOnlyAffectDirectDependencies || true === input.assumeChangesOnlyAffectDirectDependencies);
|
|
420
|
+
if (success === false && exceptionable === true)
|
|
421
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".assumeChangesOnlyAffectDirectDependencies\"", input.assumeChangesOnlyAffectDirectDependencies);
|
|
422
|
+
return success;
|
|
423
|
+
})() && (function () {
|
|
424
|
+
var success = true && null !== input.noLib && (false || undefined === input.noLib || false === input.noLib || true === input.noLib);
|
|
425
|
+
if (success === false && exceptionable === true)
|
|
426
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noLib\"", input.noLib);
|
|
427
|
+
return success;
|
|
428
|
+
})() && (function () {
|
|
429
|
+
var success = true && null !== input.noResolve && (false || undefined === input.noResolve || false === input.noResolve || true === input.noResolve);
|
|
430
|
+
if (success === false && exceptionable === true)
|
|
431
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noResolve\"", input.noResolve);
|
|
432
|
+
return success;
|
|
433
|
+
})() && (function () {
|
|
434
|
+
var success = true && null !== input.noUncheckedIndexedAccess && (false || undefined === input.noUncheckedIndexedAccess || false === input.noUncheckedIndexedAccess || true === input.noUncheckedIndexedAccess);
|
|
435
|
+
if (success === false && exceptionable === true)
|
|
436
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noUncheckedIndexedAccess\"", input.noUncheckedIndexedAccess);
|
|
437
|
+
return success;
|
|
438
|
+
})() && (function () {
|
|
439
|
+
var success = true && null !== input.out && (false || undefined === input.out || typeof input.out === "string");
|
|
440
|
+
if (success === false && exceptionable === true)
|
|
441
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".out\"", input.out);
|
|
442
|
+
return success;
|
|
443
|
+
})() && (function () {
|
|
444
|
+
var success = true && null !== input.outDir && (false || undefined === input.outDir || typeof input.outDir === "string");
|
|
445
|
+
if (success === false && exceptionable === true)
|
|
446
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".outDir\"", input.outDir);
|
|
447
|
+
return success;
|
|
448
|
+
})() && (function () {
|
|
449
|
+
var success = true && null !== input.outFile && (false || undefined === input.outFile || typeof input.outFile === "string");
|
|
450
|
+
if (success === false && exceptionable === true)
|
|
451
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".outFile\"", input.outFile);
|
|
452
|
+
return success;
|
|
453
|
+
})() && (function () {
|
|
454
|
+
var success = true && null !== input.paths && (false || undefined === input.paths || true && null !== input.paths && typeof input.paths === "object" && assert[3](input.paths, path + ".paths", true && exceptionable));
|
|
455
|
+
if (success === false && exceptionable === true)
|
|
456
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".paths\"", input.paths);
|
|
457
|
+
return success;
|
|
458
|
+
})() && (function () {
|
|
459
|
+
var success = true && null !== input.preserveConstEnums && (false || undefined === input.preserveConstEnums || false === input.preserveConstEnums || true === input.preserveConstEnums);
|
|
460
|
+
if (success === false && exceptionable === true)
|
|
461
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".preserveConstEnums\"", input.preserveConstEnums);
|
|
462
|
+
return success;
|
|
463
|
+
})() && (function () {
|
|
464
|
+
var success = true && null !== input.noImplicitOverride && (false || undefined === input.noImplicitOverride || false === input.noImplicitOverride || true === input.noImplicitOverride);
|
|
465
|
+
if (success === false && exceptionable === true)
|
|
466
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".noImplicitOverride\"", input.noImplicitOverride);
|
|
467
|
+
return success;
|
|
468
|
+
})() && (function () {
|
|
469
|
+
var success = true && null !== input.preserveSymlinks && (false || undefined === input.preserveSymlinks || false === input.preserveSymlinks || true === input.preserveSymlinks);
|
|
470
|
+
if (success === false && exceptionable === true)
|
|
471
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".preserveSymlinks\"", input.preserveSymlinks);
|
|
472
|
+
return success;
|
|
473
|
+
})() && (function () {
|
|
474
|
+
var success = true && null !== input.preserveValueImports && (false || undefined === input.preserveValueImports || false === input.preserveValueImports || true === input.preserveValueImports);
|
|
475
|
+
if (success === false && exceptionable === true)
|
|
476
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".preserveValueImports\"", input.preserveValueImports);
|
|
477
|
+
return success;
|
|
478
|
+
})() && (function () {
|
|
479
|
+
var success = true && null !== input.project && (false || undefined === input.project || typeof input.project === "string");
|
|
480
|
+
if (success === false && exceptionable === true)
|
|
481
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".project\"", input.project);
|
|
482
|
+
return success;
|
|
483
|
+
})() && (function () {
|
|
484
|
+
var success = true && null !== input.reactNamespace && (false || undefined === input.reactNamespace || typeof input.reactNamespace === "string");
|
|
485
|
+
if (success === false && exceptionable === true)
|
|
486
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".reactNamespace\"", input.reactNamespace);
|
|
487
|
+
return success;
|
|
488
|
+
})() && (function () {
|
|
489
|
+
var success = true && null !== input.jsxFactory && (false || undefined === input.jsxFactory || typeof input.jsxFactory === "string");
|
|
490
|
+
if (success === false && exceptionable === true)
|
|
491
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".jsxFactory\"", input.jsxFactory);
|
|
492
|
+
return success;
|
|
493
|
+
})() && (function () {
|
|
494
|
+
var success = true && null !== input.jsxFragmentFactory && (false || undefined === input.jsxFragmentFactory || typeof input.jsxFragmentFactory === "string");
|
|
495
|
+
if (success === false && exceptionable === true)
|
|
496
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".jsxFragmentFactory\"", input.jsxFragmentFactory);
|
|
497
|
+
return success;
|
|
498
|
+
})() && (function () {
|
|
499
|
+
var success = true && null !== input.jsxImportSource && (false || undefined === input.jsxImportSource || typeof input.jsxImportSource === "string");
|
|
500
|
+
if (success === false && exceptionable === true)
|
|
501
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".jsxImportSource\"", input.jsxImportSource);
|
|
502
|
+
return success;
|
|
503
|
+
})() && (function () {
|
|
504
|
+
var success = true && null !== input.composite && (false || undefined === input.composite || false === input.composite || true === input.composite);
|
|
505
|
+
if (success === false && exceptionable === true)
|
|
506
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".composite\"", input.composite);
|
|
507
|
+
return success;
|
|
508
|
+
})() && (function () {
|
|
509
|
+
var success = true && null !== input.incremental && (false || undefined === input.incremental || false === input.incremental || true === input.incremental);
|
|
510
|
+
if (success === false && exceptionable === true)
|
|
511
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".incremental\"", input.incremental);
|
|
512
|
+
return success;
|
|
513
|
+
})() && (function () {
|
|
514
|
+
var success = true && null !== input.tsBuildInfoFile && (false || undefined === input.tsBuildInfoFile || typeof input.tsBuildInfoFile === "string");
|
|
515
|
+
if (success === false && exceptionable === true)
|
|
516
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".tsBuildInfoFile\"", input.tsBuildInfoFile);
|
|
517
|
+
return success;
|
|
518
|
+
})() && (function () {
|
|
519
|
+
var success = true && null !== input.removeComments && (false || undefined === input.removeComments || false === input.removeComments || true === input.removeComments);
|
|
520
|
+
if (success === false && exceptionable === true)
|
|
521
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".removeComments\"", input.removeComments);
|
|
522
|
+
return success;
|
|
523
|
+
})() && (function () {
|
|
524
|
+
var success = true && null !== input.rootDir && (false || undefined === input.rootDir || typeof input.rootDir === "string");
|
|
525
|
+
if (success === false && exceptionable === true)
|
|
526
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".rootDir\"", input.rootDir);
|
|
527
|
+
return success;
|
|
528
|
+
})() && (function () {
|
|
529
|
+
var success = true && null !== input.rootDirs && (false || undefined === input.rootDirs || Array.isArray(input.rootDirs) && (false || input.rootDirs.every(function (elem, index) { return (function () {
|
|
530
|
+
var success = true && null !== elem && undefined !== elem && typeof elem === "string";
|
|
531
|
+
if (success === false && exceptionable === true)
|
|
532
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".rootDirs[\" + index + \"]\"", elem);
|
|
533
|
+
return success;
|
|
534
|
+
})(); })));
|
|
535
|
+
if (success === false && exceptionable === true)
|
|
536
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".rootDirs\"", input.rootDirs);
|
|
537
|
+
return success;
|
|
538
|
+
})() && (function () {
|
|
539
|
+
var success = true && null !== input.skipLibCheck && (false || undefined === input.skipLibCheck || false === input.skipLibCheck || true === input.skipLibCheck);
|
|
540
|
+
if (success === false && exceptionable === true)
|
|
541
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".skipLibCheck\"", input.skipLibCheck);
|
|
542
|
+
return success;
|
|
543
|
+
})() && (function () {
|
|
544
|
+
var success = true && null !== input.skipDefaultLibCheck && (false || undefined === input.skipDefaultLibCheck || false === input.skipDefaultLibCheck || true === input.skipDefaultLibCheck);
|
|
545
|
+
if (success === false && exceptionable === true)
|
|
546
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".skipDefaultLibCheck\"", input.skipDefaultLibCheck);
|
|
547
|
+
return success;
|
|
548
|
+
})() && (function () {
|
|
549
|
+
var success = true && null !== input.sourceMap && (false || undefined === input.sourceMap || false === input.sourceMap || true === input.sourceMap);
|
|
550
|
+
if (success === false && exceptionable === true)
|
|
551
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".sourceMap\"", input.sourceMap);
|
|
552
|
+
return success;
|
|
553
|
+
})() && (function () {
|
|
554
|
+
var success = true && null !== input.sourceRoot && (false || undefined === input.sourceRoot || typeof input.sourceRoot === "string");
|
|
555
|
+
if (success === false && exceptionable === true)
|
|
556
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".sourceRoot\"", input.sourceRoot);
|
|
557
|
+
return success;
|
|
558
|
+
})() && (function () {
|
|
559
|
+
var success = true && null !== input.strict && (false || undefined === input.strict || false === input.strict || true === input.strict);
|
|
560
|
+
if (success === false && exceptionable === true)
|
|
561
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".strict\"", input.strict);
|
|
562
|
+
return success;
|
|
563
|
+
})() && (function () {
|
|
564
|
+
var success = true && null !== input.strictFunctionTypes && (false || undefined === input.strictFunctionTypes || false === input.strictFunctionTypes || true === input.strictFunctionTypes);
|
|
565
|
+
if (success === false && exceptionable === true)
|
|
566
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".strictFunctionTypes\"", input.strictFunctionTypes);
|
|
567
|
+
return success;
|
|
568
|
+
})() && (function () {
|
|
569
|
+
var success = true && null !== input.strictBindCallApply && (false || undefined === input.strictBindCallApply || false === input.strictBindCallApply || true === input.strictBindCallApply);
|
|
570
|
+
if (success === false && exceptionable === true)
|
|
571
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".strictBindCallApply\"", input.strictBindCallApply);
|
|
572
|
+
return success;
|
|
573
|
+
})() && (function () {
|
|
574
|
+
var success = true && null !== input.strictNullChecks && (false || undefined === input.strictNullChecks || false === input.strictNullChecks || true === input.strictNullChecks);
|
|
575
|
+
if (success === false && exceptionable === true)
|
|
576
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".strictNullChecks\"", input.strictNullChecks);
|
|
577
|
+
return success;
|
|
578
|
+
})() && (function () {
|
|
579
|
+
var success = true && null !== input.strictPropertyInitialization && (false || undefined === input.strictPropertyInitialization || false === input.strictPropertyInitialization || true === input.strictPropertyInitialization);
|
|
580
|
+
if (success === false && exceptionable === true)
|
|
581
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".strictPropertyInitialization\"", input.strictPropertyInitialization);
|
|
582
|
+
return success;
|
|
583
|
+
})() && (function () {
|
|
584
|
+
var success = true && null !== input.stripInternal && (false || undefined === input.stripInternal || false === input.stripInternal || true === input.stripInternal);
|
|
585
|
+
if (success === false && exceptionable === true)
|
|
586
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".stripInternal\"", input.stripInternal);
|
|
587
|
+
return success;
|
|
588
|
+
})() && (function () {
|
|
589
|
+
var success = true && null !== input.suppressExcessPropertyErrors && (false || undefined === input.suppressExcessPropertyErrors || false === input.suppressExcessPropertyErrors || true === input.suppressExcessPropertyErrors);
|
|
590
|
+
if (success === false && exceptionable === true)
|
|
591
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".suppressExcessPropertyErrors\"", input.suppressExcessPropertyErrors);
|
|
592
|
+
return success;
|
|
593
|
+
})() && (function () {
|
|
594
|
+
var success = true && null !== input.suppressImplicitAnyIndexErrors && (false || undefined === input.suppressImplicitAnyIndexErrors || false === input.suppressImplicitAnyIndexErrors || true === input.suppressImplicitAnyIndexErrors);
|
|
595
|
+
if (success === false && exceptionable === true)
|
|
596
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".suppressImplicitAnyIndexErrors\"", input.suppressImplicitAnyIndexErrors);
|
|
597
|
+
return success;
|
|
598
|
+
})() && (function () {
|
|
599
|
+
var success = true && null !== input.target && (false || 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);
|
|
600
|
+
if (success === false && exceptionable === true)
|
|
601
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".target\"", input.target);
|
|
602
|
+
return success;
|
|
603
|
+
})() && (function () {
|
|
604
|
+
var success = true && null !== input.traceResolution && (false || undefined === input.traceResolution || false === input.traceResolution || true === input.traceResolution);
|
|
605
|
+
if (success === false && exceptionable === true)
|
|
606
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".traceResolution\"", input.traceResolution);
|
|
607
|
+
return success;
|
|
608
|
+
})() && (function () {
|
|
609
|
+
var success = true && null !== input.useUnknownInCatchVariables && (false || undefined === input.useUnknownInCatchVariables || false === input.useUnknownInCatchVariables || true === input.useUnknownInCatchVariables);
|
|
610
|
+
if (success === false && exceptionable === true)
|
|
611
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".useUnknownInCatchVariables\"", input.useUnknownInCatchVariables);
|
|
612
|
+
return success;
|
|
613
|
+
})() && (function () {
|
|
614
|
+
var success = true && null !== input.resolveJsonModule && (false || undefined === input.resolveJsonModule || false === input.resolveJsonModule || true === input.resolveJsonModule);
|
|
615
|
+
if (success === false && exceptionable === true)
|
|
616
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".resolveJsonModule\"", input.resolveJsonModule);
|
|
617
|
+
return success;
|
|
618
|
+
})() && (function () {
|
|
619
|
+
var success = true && null !== input.types && (false || undefined === input.types || Array.isArray(input.types) && (false || input.types.every(function (elem, index) { return (function () {
|
|
620
|
+
var success = true && null !== elem && undefined !== elem && typeof elem === "string";
|
|
621
|
+
if (success === false && exceptionable === true)
|
|
622
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".types[\" + index + \"]\"", elem);
|
|
623
|
+
return success;
|
|
624
|
+
})(); })));
|
|
625
|
+
if (success === false && exceptionable === true)
|
|
626
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".types\"", input.types);
|
|
627
|
+
return success;
|
|
628
|
+
})() && (function () {
|
|
629
|
+
var success = true && null !== input.typeRoots && (false || undefined === input.typeRoots || Array.isArray(input.typeRoots) && (false || input.typeRoots.every(function (elem, index) { return (function () {
|
|
630
|
+
var success = true && null !== elem && undefined !== elem && typeof elem === "string";
|
|
631
|
+
if (success === false && exceptionable === true)
|
|
632
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".typeRoots[\" + index + \"]\"", elem);
|
|
633
|
+
return success;
|
|
634
|
+
})(); })));
|
|
635
|
+
if (success === false && exceptionable === true)
|
|
636
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".typeRoots\"", input.typeRoots);
|
|
637
|
+
return success;
|
|
638
|
+
})() && (function () {
|
|
639
|
+
var success = true && null !== input.esModuleInterop && (false || undefined === input.esModuleInterop || false === input.esModuleInterop || true === input.esModuleInterop);
|
|
640
|
+
if (success === false && exceptionable === true)
|
|
641
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".esModuleInterop\"", input.esModuleInterop);
|
|
642
|
+
return success;
|
|
643
|
+
})() && (function () {
|
|
644
|
+
var success = true && null !== input.useDefineForClassFields && (false || undefined === input.useDefineForClassFields || false === input.useDefineForClassFields || true === input.useDefineForClassFields);
|
|
645
|
+
if (success === false && exceptionable === true)
|
|
646
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".useDefineForClassFields\"", input.useDefineForClassFields);
|
|
647
|
+
return success;
|
|
648
|
+
})(); },
|
|
649
|
+
function (input, path, exceptionable) { return true; },
|
|
650
|
+
function (input, path, exceptionable) { return true && (function () {
|
|
651
|
+
var success = true && null !== input.output && undefined !== input.output && typeof input.output === "string";
|
|
652
|
+
if (success === false && exceptionable === true)
|
|
653
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \".output\"", input.output);
|
|
654
|
+
return success;
|
|
655
|
+
})(); }
|
|
656
|
+
];
|
|
657
|
+
return (function () {
|
|
658
|
+
var success = true && null !== input && undefined !== input && (true && null !== input && typeof input === "object" && assert[0](input, path + "", true));
|
|
659
|
+
if (success === false && exceptionable === true)
|
|
660
|
+
throw new typescript_json_1.assert.TypeGuardError("assert", "path + \"\"", input);
|
|
661
|
+
return success;
|
|
662
|
+
})();
|
|
663
|
+
})(input); return input; })(nestia_fetcher_1.Primitive.clone(config))];
|
|
276
664
|
}
|
|
277
665
|
});
|
|
278
666
|
}); });
|