phpxui 0.0.1

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.
@@ -0,0 +1,25 @@
1
+ # Contributing to PHPXUI
2
+
3
+ We welcome contributions from the community! Here's how you can contribute:
4
+
5
+ ## Reporting Issues
6
+
7
+ - Use GitHub Issues to report bugs or suggest features.
8
+ - Before submitting an issue, please search existing issues to avoid duplicates.
9
+
10
+ ## Pull Requests
11
+
12
+ - Fork the repository and create your branch from `master`.
13
+ - If you've added code that should be tested, add tests.
14
+ - Ensure your code lints and follows the coding conventions used throughout the project.
15
+ - Write clear, concise commit messages.
16
+
17
+ ## Code of Conduct
18
+
19
+ This project and everyone participating in it are governed by the [Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code.
20
+
21
+ ## Questions or Suggestions
22
+
23
+ Feel free to contact us via [GitHub Discussions](https://github.com/TheSteelNinjaCode) or our Discord server (link) for questions, discussions, or suggestions.
24
+
25
+ Thank you for contributing to PHPXUI!
package/LICENSE.txt ADDED
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 The Steel Ninja Code - Jefferson Abraham Omier
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,118 @@
1
+ # **phpxui-cli** — Instant PHPXUI Component Generator 🚀
2
+
3
+ > **Generate fully‑typed PHPXUI components for Prisma PHP right from the terminal.**
4
+ > ⚡ **Single component** → `npx phpxui add Alert`   |   🌌 **Whole library** → `npx phpxui add --all`
5
+
6
+ ---
7
+
8
+ ## ✨ Features
9
+
10
+ | Feature | Details |
11
+ | --------------------- | -------------------------------------------------------------------------------------------------------- |
12
+ | **Bulk install** | `--all` downloads every component in a single compressed request. |
13
+ | **Ready‑to‑use code** | Each file already contains the `$class` merge logic and `{$attributes}` placeholder for Wave reactivity. |
14
+ | **Clean paths** | Files are written under `src/Lib/PHPXUI/FancyName.php` with OS‑agnostic separators. |
15
+ | **Friendly output** | Clear green / red summary with relative paths only. |
16
+ | **Cross‑platform** | Works equally on Windows, macOS and Linux. |
17
+
18
+ ---
19
+
20
+ ## 📦 Installation
21
+
22
+ ```bash
23
+ # Global
24
+ npm install -g phpxui
25
+
26
+ # Or as a dev‑dependency
27
+ npm install -D phpxui
28
+ ```
29
+
30
+ > Requires **Node 18+** and a Prisma PHP project (PHP 8.2+).
31
+
32
+ ---
33
+
34
+ ## 🚀 Quick Start
35
+
36
+ ```bash
37
+ # Add a single component
38
+ npx phpxui add Alert
39
+
40
+ # Add multiple components at once
41
+ npx phpxui add Alert Dialog Badge
42
+
43
+ # Add the entire component set
44
+ npx phpxui add --all
45
+ ```
46
+
47
+ CLI output example:
48
+
49
+ ```bash
50
+ ✔ Alert → src/Lib/PHPXUI/Alert.php
51
+ ✔ Dialog → src/Lib/PHPXUI/Dialog.php
52
+ ✔ Badge → src/Lib/PHPXUI/Badge.php
53
+ ```
54
+
55
+ Each generated file looks like this:
56
+
57
+ ```php
58
+ <?php
59
+ namespace Lib\PHPXUI;
60
+
61
+ use Lib\PHPX\PHPX;
62
+
63
+ class Alert extends PHPX
64
+ {
65
+ public function render(): string
66
+ {
67
+ $attributes = $this->getAttributes();
68
+ $class = $this->getMergeClasses();
69
+
70
+ return <<<HTML
71
+ <div {$attributes} class="alert {$class}">
72
+ {$this->children}
73
+ </div>
74
+ HTML;
75
+ }
76
+ }
77
+ ```
78
+
79
+ ---
80
+
81
+ ## 🔧 CLI Options
82
+
83
+ | Flag / Argument | Description |
84
+ | --------------- | -------------------------------------------------------- |
85
+ | `<component …>` | One or more component names separated by space or comma. |
86
+ | `--all` | Download the full catalogue in one request. |
87
+ | `--out <dir>` | Destination folder (default `src/Lib/PHPXUI`). |
88
+ | `--force` | Overwrite existing files. |
89
+
90
+ ---
91
+
92
+ ## 📚 Documentation
93
+
94
+ Full guides and examples live at the [PHPXUI documentation site](https://phpxui.tsnc.tech/).
95
+
96
+ ---
97
+
98
+ ## 💡 Contributing
99
+
100
+ We welcome contributions to improve **phpxui-cli**. If you have ideas, found bugs, or want to add features, open an issue or submit a pull request.
101
+
102
+ ---
103
+
104
+ ## 📄 License
105
+
106
+ `phpxui-cli` is released under the MIT License. See `LICENSE` for details.
107
+
108
+ ---
109
+
110
+ ## 👤 Author
111
+
112
+ This project is developed and maintained by [The Steel Ninja Code](https://thesteelninjacode.com/), continuously pushing the boundaries of PHP development.
113
+
114
+ ---
115
+
116
+ ## 📧 Contact
117
+
118
+ Questions or feedback? Reach us at [thesteelninjacode@gmail.com](mailto:thesteelninjacode@gmail.com) — we’d love to hear from you!
@@ -0,0 +1,27 @@
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.generateComponent = generateComponent;
7
+ const node_fetch_1 = __importDefault(require("node-fetch"));
8
+ const write_component_1 = require("./write-component");
9
+ const path_1 = __importDefault(require("path"));
10
+ const SINGLE_URL = "https://phpxui.tsnc.tech/cli";
11
+ async function generateComponent(componentName, targetDir, force = false) {
12
+ const url = `${SINGLE_URL}?component=${encodeURIComponent(componentName)}`;
13
+ const res = await (0, node_fetch_1.default)(url);
14
+ if (!res.ok) {
15
+ throw new Error(`Could not fetch "${componentName}": ${res.status} – ${url}`);
16
+ }
17
+ // El endpoint puede devolver un objeto (uno) o un array (muchos)
18
+ const json = await res.json();
19
+ const components = Array.isArray(json) ? json : [json];
20
+ const writtenPaths = [];
21
+ for (const cmp of components) {
22
+ // Cada objeto contiene { name, content }
23
+ const filePath = await (0, write_component_1.writeComponent)(cmp, targetDir, force);
24
+ writtenPaths.push(path_1.default.relative(process.cwd(), filePath));
25
+ }
26
+ return writtenPaths;
27
+ }
@@ -0,0 +1,42 @@
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.generateAllComponents = generateAllComponents;
7
+ const node_fetch_1 = __importDefault(require("node-fetch"));
8
+ const write_component_1 = require("./write-component");
9
+ /** Endpoint that returns every PHPXUI component */
10
+ const BULK_URL = "https://phpxui.tsnc.tech/cli?component=all";
11
+ /**
12
+ * Download all components and write them to disk.
13
+ *
14
+ * @param targetDir Destination folder (e.g. "./src/Lib/PHPXUI")
15
+ * @param force Overwrite if file exists (default: false)
16
+ */
17
+ async function generateAllComponents(targetDir, force = false) {
18
+ const res = await (0, node_fetch_1.default)(BULK_URL);
19
+ if (!res.ok) {
20
+ throw new Error(`Could not fetch component list: ${res.status} – ${BULK_URL}`);
21
+ }
22
+ // Backend returns [{ name, content }]
23
+ const components = (await res.json());
24
+ console.log(`➡ Received ${components.length} components. Generating…`);
25
+ const ok = [];
26
+ const fail = [];
27
+ /* Small concurrency queue to avoid hammering the FS */
28
+ const BATCH = 10;
29
+ let queue = [];
30
+ for (const cmp of components) {
31
+ const job = (0, write_component_1.writeComponent)(cmp, targetDir, force)
32
+ .then((file) => ok.push(file))
33
+ .catch((e) => fail.push(`${cmp.name}: ${e.message}`));
34
+ queue.push(job);
35
+ if (queue.length >= BATCH) {
36
+ await Promise.allSettled(queue);
37
+ queue = [];
38
+ }
39
+ }
40
+ await Promise.allSettled(queue);
41
+ return { ok, fail };
42
+ }
@@ -0,0 +1,26 @@
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.writeComponent = writeComponent;
7
+ const fs_extra_1 = __importDefault(require("fs-extra"));
8
+ const path_1 = __importDefault(require("path"));
9
+ /**
10
+ * Writes a PHPXUI component file to disk.
11
+ *
12
+ * @param componentJson { name: string; content: string }
13
+ * @param targetDir Destination folder
14
+ * @param force Overwrite if file exists
15
+ * @returns Path of the written file
16
+ */
17
+ async function writeComponent(componentJson, targetDir, force = false) {
18
+ const filePath = path_1.default.join(targetDir, `${componentJson.name}.php`);
19
+ if (!force && (await fs_extra_1.default.pathExists(filePath))) {
20
+ // Skip quietly
21
+ return filePath;
22
+ }
23
+ await fs_extra_1.default.ensureDir(path_1.default.dirname(filePath));
24
+ await fs_extra_1.default.writeFile(filePath, componentJson.content, "utf8");
25
+ return filePath;
26
+ }
package/dist/index.js ADDED
@@ -0,0 +1,84 @@
1
+ #!/usr/bin/env node
2
+ "use strict";
3
+ var __importDefault = (this && this.__importDefault) || function (mod) {
4
+ return (mod && mod.__esModule) ? mod : { "default": mod };
5
+ };
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ const prompts_1 = __importDefault(require("prompts"));
8
+ const chalk_1 = __importDefault(require("chalk"));
9
+ const path_1 = __importDefault(require("path"));
10
+ const php_component_1 = require("./generators/php-component");
11
+ const php_components_bulk_1 = require("./generators/php-components-bulk");
12
+ (async () => {
13
+ /* ─────────────────────────────────────────────
14
+ * 1. Parse command + flags
15
+ * ──────────────────────────────────────────── */
16
+ const args = process.argv.slice(2);
17
+ const [command, ...rest] = args;
18
+ if (command !== "add") {
19
+ console.log(chalk_1.default.blue("Usage: phpxui add [--all] [--out <dir>] [--force] <component…>"));
20
+ process.exit(0);
21
+ }
22
+ const flags = { all: false, force: false, out: null };
23
+ const names = [];
24
+ for (let i = 0; i < rest.length; i++) {
25
+ const tok = rest[i];
26
+ switch (tok) {
27
+ case "--all":
28
+ flags.all = true;
29
+ break;
30
+ case "--force":
31
+ flags.force = true;
32
+ break;
33
+ case "--out":
34
+ flags.out = rest[++i] || null;
35
+ break;
36
+ default:
37
+ names.push(tok);
38
+ }
39
+ }
40
+ /* ─────────────────────────────────────────────
41
+ * 2. Destination directory
42
+ * ──────────────────────────────────────────── */
43
+ const targetDir = path_1.default.resolve(flags.out ?? "src/Lib/PHPXUI");
44
+ try {
45
+ /* ─────────────────────────────────────────
46
+ * 3. Bulk mode (all components)
47
+ * ───────────────────────────────────────── */
48
+ if (flags.all) {
49
+ const { ok, fail } = await (0, php_components_bulk_1.generateAllComponents)(targetDir, flags.force);
50
+ console.log(chalk_1.default.green(`\n✔ Generated ${ok.length} components in ${path_1.default.relative(process.cwd(), targetDir)}`));
51
+ if (fail.length) {
52
+ console.log(chalk_1.default.red(`✖ ${fail.length} failures:`));
53
+ fail.forEach((m) => console.log(" •", m));
54
+ }
55
+ process.exit(fail.length ? 1 : 0);
56
+ }
57
+ /* ─────────────────────────────────────────
58
+ * 4. Single or multiple names
59
+ * ───────────────────────────────────────── */
60
+ if (names.length === 0) {
61
+ const { componentList } = await (0, prompts_1.default)({
62
+ type: "text",
63
+ name: "componentList",
64
+ message: "Which components do you want to add? (space‑ or comma‑separated)",
65
+ validate: (v) => (v.trim() ? true : "Enter at least one name"),
66
+ });
67
+ names.push(...componentList.split(/[\s,]+/));
68
+ }
69
+ /* -------- single / multiple names -------- */
70
+ for (const name of names) {
71
+ const saved = await (0, php_component_1.generateComponent)(name, targetDir, flags.force);
72
+ // Normalize to array ― generateComponent may return string | string[]
73
+ const paths = Array.isArray(saved) ? saved : [saved];
74
+ for (const abs of paths) {
75
+ const rel = path_1.default.relative(process.cwd(), abs).replace(/\\/g, "/");
76
+ console.log(chalk_1.default.green(`✔ ${name} → ${rel}`));
77
+ }
78
+ }
79
+ }
80
+ catch (err) {
81
+ console.error(chalk_1.default.red("✖ Error:"), err.message);
82
+ process.exit(1);
83
+ }
84
+ })();
package/package.json ADDED
@@ -0,0 +1,41 @@
1
+ {
2
+ "name": "phpxui",
3
+ "version": "0.0.1",
4
+ "description": "A package for generating Prisma PHP components with a CLI interface.",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1",
8
+ "prepublish": "npm run build"
9
+ },
10
+ "bin": {
11
+ "phpxui": "dist/index.js"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "git+https://github.com/TheSteelNinjaCode/phpxui.git"
16
+ },
17
+ "homepage": "https://phpxui.tsnc.tech/",
18
+ "keywords": [
19
+ "phpxui",
20
+ "php",
21
+ "components",
22
+ "prisma php"
23
+ ],
24
+ "author": "Jefferson Abraham Omier <thesteelninjacode@gmail.com>",
25
+ "license": "MIT",
26
+ "type": "commonjs",
27
+ "devDependencies": {
28
+ "@types/fs-extra": "^11.0.4",
29
+ "@types/node": "^24.0.13",
30
+ "@types/prompts": "^2.4.9",
31
+ "eslint": "^9.31.0",
32
+ "typescript": "^5.8.3"
33
+ },
34
+ "dependencies": {
35
+ "chalk": "^5.4.1",
36
+ "change-case": "^5.4.4",
37
+ "fs-extra": "^11.3.0",
38
+ "node-fetch": "^3.3.2",
39
+ "prompts": "^2.4.2"
40
+ }
41
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,114 @@
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": "esnext" /* 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
+ // "libReplacement": true, /* Enable lib replacement. */
18
+ // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
19
+ // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
20
+ // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
21
+ // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
22
+ // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
23
+ // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
24
+ // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
25
+ // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
26
+ // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
27
+
28
+ /* Modules */
29
+ "module": "nodenext" /* Specify what module code is generated. */,
30
+ "rootDir": "./src" /* Specify the root folder within your source files. */,
31
+ "moduleResolution": "nodenext" /* Specify how TypeScript looks up a file from a given module specifier. */,
32
+ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
33
+ // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
34
+ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
35
+ // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
36
+ // "types": [], /* Specify type package names to be included without being referenced in a source file. */
37
+ // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
38
+ // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
39
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
40
+ // "rewriteRelativeImportExtensions": true, /* Rewrite '.ts', '.tsx', '.mts', and '.cts' file extensions in relative import paths to their JavaScript equivalent in output files. */
41
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
42
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
43
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
44
+ // "noUncheckedSideEffectImports": true, /* Check side effect imports. */
45
+ // "resolveJsonModule": true, /* Enable importing .json files. */
46
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
47
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
48
+
49
+ /* JavaScript Support */
50
+ // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
51
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
52
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
53
+
54
+ /* Emit */
55
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
56
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
57
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
58
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
59
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
60
+ // "noEmit": true, /* Disable emitting files from a compilation. */
61
+ // "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. */
62
+ "outDir": "./dist" /* Specify an output folder for all emitted files. */,
63
+ // "removeComments": true, /* Disable emitting comments. */
64
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
65
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
66
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
67
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
68
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
69
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
70
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
71
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
72
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
73
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
74
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
75
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
76
+
77
+ /* Interop Constraints */
78
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
79
+ // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
80
+ // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
81
+ // "erasableSyntaxOnly": true, /* Do not allow runtime constructs that are not part of ECMAScript. */
82
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
83
+ "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,
84
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
85
+ "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,
86
+
87
+ /* Type Checking */
88
+ "strict": true /* Enable all strict type-checking options. */,
89
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
90
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
91
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
92
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
93
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
94
+ // "strictBuiltinIteratorReturn": true, /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */
95
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
96
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
97
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
98
+ "noUnusedLocals": true /* Enable error reporting when local variables aren't read. */,
99
+ "noUnusedParameters": true /* Raise an error when a function parameter isn't read. */,
100
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
101
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
102
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
103
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
104
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
105
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
106
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
107
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
108
+
109
+ /* Completeness */
110
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
111
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
112
+ },
113
+ "include": ["src/**/*.ts"]
114
+ }