bigjpg 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Install
2
+
3
+ Npm
4
+ ```
5
+ npm i bigjpg
6
+ ```
7
+
8
+ GitHub
9
+ ```
10
+ npm i git+https://github.com/1Marcuth/bigjpg-js.git
11
+ ```
12
+
13
+ # Simple use example
14
+ ```js
15
+ const enlarger = new Bigjpg("YOUR API TOKEN HERE")
16
+
17
+
18
+ const imageInfo = await enlarger.enlarge(
19
+ Styles.Art,
20
+ Noices.None,
21
+ EnlargeValues._4x,
22
+ "https://avatars.githubusercontent.com/u/91915075?v=4"
23
+ )
24
+
25
+ const imageUrl = imageInfo.getUrl()
26
+ await imageInfo.download("enlarged-image.png")
27
+
28
+ console.log(imageUrl)
29
+ ```
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const index_1 = require("./src/index");
13
+ (() => __awaiter(void 0, void 0, void 0, function* () {
14
+ const enlarger = new index_1.Bigjpg("634153909e7b46f68d8d1e0faa03bb37");
15
+ const imageInfo = yield enlarger.enlarge(index_1.Styles.Art, index_1.Noices.None, index_1.EnlargeValues._4x, "https://avatars.githubusercontent.com/u/91915075?v=4");
16
+ const imageUrl = imageInfo.getUrl();
17
+ yield imageInfo.download("enlarged-image.png");
18
+ console.log(imageUrl);
19
+ }))();
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ const image_downloader_1 = __importDefault(require("image-downloader"));
16
+ const axios_1 = __importDefault(require("axios"));
17
+ const utils_1 = require("./utils");
18
+ const baseUrl = "https://bigjpg.com/api";
19
+ class BigjpgError extends Error {
20
+ }
21
+ class BigjpgImage {
22
+ constructor(imageUrl) {
23
+ this.imageUrl = imageUrl;
24
+ }
25
+ getUrl() {
26
+ return this.imageUrl;
27
+ }
28
+ download(dest) {
29
+ return __awaiter(this, void 0, void 0, function* () {
30
+ yield image_downloader_1.default.image({
31
+ url: this.imageUrl,
32
+ dest: dest,
33
+ agent: true,
34
+ auth: null,
35
+ headers: undefined,
36
+ maxHeaderSize: undefined,
37
+ timeout: 0
38
+ });
39
+ });
40
+ }
41
+ }
42
+ class BigjpgTask {
43
+ constructor(url, taskId) {
44
+ this.url = url;
45
+ this.taskId = taskId;
46
+ }
47
+ fetchUntilAchieveTheResult() {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ while (true) {
50
+ const response = yield axios_1.default.get(this.url);
51
+ const dataResponse = response.data;
52
+ const data = dataResponse[this.taskId];
53
+ const status = data.status;
54
+ if (status === "success") {
55
+ return data;
56
+ }
57
+ else if (status === "error") {
58
+ throw new BigjpgError("Error processing the image!");
59
+ }
60
+ yield (0, utils_1.sleep)(.5);
61
+ }
62
+ });
63
+ }
64
+ }
65
+ class Bigjpg {
66
+ constructor(apiToken) {
67
+ this.apiToken = apiToken;
68
+ }
69
+ enlarge(style, noise, enlargeValue, imageUrl) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ const url = `${baseUrl}/task/`;
72
+ const config = {
73
+ style: style,
74
+ noise: noise,
75
+ x2: enlargeValue,
76
+ input: imageUrl
77
+ };
78
+ const headers = { "X-API-KEY": this.apiToken };
79
+ const data = { "conf": JSON.stringify(config) };
80
+ const response = yield axios_1.default.post(url, data, { headers });
81
+ const dataResponse = response.data;
82
+ if (Object.keys(dataResponse).includes("status")) {
83
+ const status = dataResponse.status;
84
+ if (status === "valid_api_key_required") {
85
+ throw new BigjpgError("Invalid API token, get your API token on the website by registering 'https://bigjpg.com/' and going to the 'API' section and copying your token that is present in the example code");
86
+ }
87
+ else if (status === "param_error") {
88
+ throw new BigjpgError("Some invalid parameter, check parameters and features available in your account and try again");
89
+ }
90
+ }
91
+ const remainingApiCalls = dataResponse.remaining_api_calls;
92
+ console.log(`> [Bigjpg-info] Remaining API calls: ${remainingApiCalls}`);
93
+ const taskId = dataResponse.tid;
94
+ const taskUrl = `${baseUrl}/task/${taskId}`;
95
+ const task = new BigjpgTask(taskUrl, taskId);
96
+ const taskResult = yield task.fetchUntilAchieveTheResult();
97
+ const enlargedImageUrl = taskResult.url;
98
+ const enlargedImage = new BigjpgImage(enlargedImageUrl);
99
+ return enlargedImage;
100
+ });
101
+ }
102
+ }
103
+ exports.default = Bigjpg;
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EnlargeValues = exports.Noices = exports.Styles = exports.Bigjpg = void 0;
7
+ const enlarger_1 = __importDefault(require("./enlarger"));
8
+ exports.Bigjpg = enlarger_1.default;
9
+ const styles_1 = __importDefault(require("./types/styles"));
10
+ exports.Styles = styles_1.default;
11
+ const noices_1 = __importDefault(require("./types/noices"));
12
+ exports.Noices = noices_1.default;
13
+ const enlarge_values_1 = __importDefault(require("./types/enlarge-values"));
14
+ exports.EnlargeValues = enlarge_values_1.default;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const EnlargeValues = {
4
+ _2x: "1",
5
+ _4x: "2",
6
+ _8x: "3",
7
+ _16x: "4"
8
+ };
9
+ exports.default = EnlargeValues;
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Noices = {
4
+ None: "-1",
5
+ Low: "0",
6
+ Medium: "1",
7
+ High: "2",
8
+ Highest: "3"
9
+ };
10
+ exports.default = Noices;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const Styles = {
4
+ Art: "art",
5
+ Photo: "photo"
6
+ };
7
+ exports.default = Styles;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.sleep = void 0;
13
+ function sleep(time) {
14
+ return __awaiter(this, void 0, void 0, function* () {
15
+ return new Promise((resolve, reject) => {
16
+ setTimeout(() => {
17
+ resolve(null);
18
+ }, time);
19
+ });
20
+ });
21
+ }
22
+ exports.sleep = sleep;
package/package.json ADDED
@@ -0,0 +1,33 @@
1
+ {
2
+ "name": "bigjpg",
3
+ "version": "1.0.0",
4
+ "types": "index.d.ts",
5
+ "description": "Simple wrapper for https://bigjpg.com/",
6
+ "main": "dist/index.js",
7
+ "scripts": {
8
+ "dev": "ts-node example.ts",
9
+ "build": "tsc"
10
+ },
11
+ "keywords": [
12
+ "bigjpg",
13
+ "api",
14
+ "wrapper"
15
+ ],
16
+ "author": "Marcuth",
17
+ "license": "MIT",
18
+ "dependencies": {
19
+ "axios": "^1.2.2",
20
+ "image-downloader": "^4.3.0"
21
+ },
22
+ "repository": {
23
+ "type": "git",
24
+ "url": "git+https://github.com/1Marcuth/bigjpg-js.git"
25
+ },
26
+ "bugs": {
27
+ "url": "https://github.com/1Marcuth/bigjpg-js/issues"
28
+ },
29
+ "homepage": "https://github.com/1Marcuth/bigjpg-js#readme",
30
+ "devDependencies": {
31
+ "@types/node": "^18.11.18"
32
+ }
33
+ }
@@ -0,0 +1,117 @@
1
+ import imageDownloader from "image-downloader"
2
+ import axios from "axios"
3
+
4
+ import IEnlargeConfig from "./interfaces/enlarge-config"
5
+ import { sleep } from "./utils"
6
+
7
+ const baseUrl = "https://bigjpg.com/api"
8
+
9
+ class BigjpgError extends Error {}
10
+
11
+ class BigjpgImage {
12
+ private imageUrl: string
13
+
14
+ constructor(imageUrl: string) {
15
+ this.imageUrl = imageUrl
16
+ }
17
+
18
+ getUrl(): string {
19
+ return this.imageUrl
20
+ }
21
+
22
+ async download(dest: string) {
23
+ await imageDownloader.image({
24
+ url: this.imageUrl,
25
+ dest: dest,
26
+ agent: true,
27
+ auth: null,
28
+ headers: undefined,
29
+ maxHeaderSize: undefined,
30
+ timeout: 0
31
+ })
32
+ }
33
+ }
34
+
35
+ class BigjpgTask {
36
+ private url: string
37
+ private taskId: string
38
+
39
+ constructor(url: string, taskId: string) {
40
+ this.url = url
41
+ this.taskId = taskId
42
+ }
43
+
44
+ async fetchUntilAchieveTheResult() {
45
+ while (true) {
46
+ const response = await axios.get(this.url)
47
+ const dataResponse = response.data
48
+
49
+ const data = dataResponse[this.taskId]
50
+
51
+ const status = data.status
52
+
53
+ if (status === "success") {
54
+ return data
55
+ } else if (status === "error") {
56
+ throw new BigjpgError("Error processing the image!")
57
+ }
58
+
59
+ await sleep(.5)
60
+ }
61
+ }
62
+ }
63
+
64
+ class Bigjpg {
65
+ private apiToken: string
66
+
67
+ constructor(apiToken: string) {
68
+ this.apiToken = apiToken
69
+ }
70
+
71
+ async enlarge(
72
+ style: string,
73
+ noise: string,
74
+ enlargeValue: string,
75
+ imageUrl: string
76
+ ): Promise<BigjpgImage> {
77
+ const url = `${baseUrl}/task/`
78
+ const config: IEnlargeConfig = {
79
+ style: style,
80
+ noise: noise,
81
+ x2: enlargeValue,
82
+ input: imageUrl
83
+ }
84
+
85
+ const headers = { "X-API-KEY": this.apiToken }
86
+ const data = { "conf": JSON.stringify(config) }
87
+
88
+ const response = await axios.post(url, data, { headers })
89
+ const dataResponse = response.data
90
+
91
+ if (Object.keys(dataResponse).includes("status")) {
92
+ const status = dataResponse.status
93
+
94
+ if (status === "valid_api_key_required") {
95
+ throw new BigjpgError("Invalid API token, get your API token on the website by registering 'https://bigjpg.com/' and going to the 'API' section and copying your token that is present in the example code")
96
+ } else if (status === "param_error") {
97
+ throw new BigjpgError("Some invalid parameter, check parameters and features available in your account and try again")
98
+ }
99
+ }
100
+
101
+ const remainingApiCalls = dataResponse.remaining_api_calls
102
+
103
+ console.log(`> [Bigjpg-info] Remaining API calls: ${remainingApiCalls}`)
104
+
105
+ const taskId = dataResponse.tid
106
+ const taskUrl = `${baseUrl}/task/${taskId}`
107
+ const task = new BigjpgTask(taskUrl, taskId)
108
+ const taskResult = await task.fetchUntilAchieveTheResult()
109
+
110
+ const enlargedImageUrl = taskResult.url
111
+ const enlargedImage = new BigjpgImage(enlargedImageUrl)
112
+
113
+ return enlargedImage
114
+ }
115
+ }
116
+
117
+ export default Bigjpg
package/src/index.ts ADDED
@@ -0,0 +1,6 @@
1
+ import Bigjpg from "./enlarger"
2
+ import Styles from "./types/styles"
3
+ import Noices from "./types/noices"
4
+ import EnlargeValues from "./types/enlarge-values"
5
+
6
+ export { Bigjpg, Styles, Noices, EnlargeValues }
@@ -0,0 +1,8 @@
1
+ interface IEnlargeConfig {
2
+ style: string
3
+ noise: string
4
+ x2: string
5
+ input: string
6
+ }
7
+
8
+ export default IEnlargeConfig
@@ -0,0 +1,8 @@
1
+ const EnlargeValues = {
2
+ _2x: "1",
3
+ _4x: "2",
4
+ _8x: "3",
5
+ _16x: "4"
6
+ }
7
+
8
+ export default EnlargeValues
@@ -0,0 +1,9 @@
1
+ const Noices = {
2
+ None: "-1",
3
+ Low: "0",
4
+ Medium: "1",
5
+ High: "2",
6
+ Highest: "3"
7
+ }
8
+
9
+ export default Noices
@@ -0,0 +1,6 @@
1
+ const Styles = {
2
+ Art: "art",
3
+ Photo: "photo"
4
+ }
5
+
6
+ export default Styles
package/src/utils.ts ADDED
@@ -0,0 +1,9 @@
1
+ async function sleep(time: number) {
2
+ return new Promise((resolve, reject) => {
3
+ setTimeout(() => {
4
+ resolve(null)
5
+ }, time)
6
+ })
7
+ }
8
+
9
+ export { sleep }
package/tsconfig.json ADDED
@@ -0,0 +1,103 @@
1
+ {
2
+ "compilerOptions": {
3
+ /* Visit https://aka.ms/tsconfig to read more about this file */
4
+
5
+ /* Projects */
6
+ // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
7
+ // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
8
+ // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
9
+ // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
10
+ // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
11
+ // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
+
13
+ /* Language and Environment */
14
+ "target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
+ // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
+ // "jsx": "preserve", /* Specify what JSX code is generated. */
17
+ // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */
18
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
19
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
20
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
22
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
23
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
25
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
+
27
+ /* Modules */
28
+ "module": "commonjs", /* Specify what module code is generated. */
29
+ // "rootDir": "./", /* Specify the root folder within your source files. */
30
+ // "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
31
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
34
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
36
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
37
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
38
+ // "resolveJsonModule": true, /* Enable importing .json files. */
39
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
40
+
41
+ /* JavaScript Support */
42
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
43
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
44
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
45
+
46
+ /* Emit */
47
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
48
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
49
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
50
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
51
+ // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
52
+ "outDir": "./dist/", /* Specify an output folder for all emitted files. */
53
+ // "removeComments": true, /* Disable emitting comments. */
54
+ // "noEmit": true, /* Disable emitting files from a compilation. */
55
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
56
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
57
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
58
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
59
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
60
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
61
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
62
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
63
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
64
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
65
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
66
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
67
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
68
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
69
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
70
+
71
+ /* Interop Constraints */
72
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
73
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
74
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
75
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
76
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
77
+
78
+ /* Type Checking */
79
+ "strict": true, /* Enable all strict type-checking options. */
80
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
81
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
82
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
83
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
84
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
85
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
86
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
87
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
88
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
89
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
90
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
91
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
92
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
93
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
94
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
95
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
96
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
97
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
98
+
99
+ /* Completeness */
100
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
101
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
102
+ }
103
+ }