@requestly/mcp 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.
@@ -0,0 +1,120 @@
1
+ import z from "zod";
2
+ import { CancelPairSchema, DelayPairSchema, HeadersPairSchema, QueryParamPairSchema, RedirectPairSchema, ReplacePairSchema, RequestPairSchema, ResponsePairSchema, RuleTypeEnum, UserAgentPairSchema } from "./ruleSchemas.js";
3
+
4
+ function createRuleSchema<T extends z.infer<typeof RuleTypeEnum>>(
5
+ ruleType: T,
6
+ pairSchema: z.ZodType<any>
7
+ ) {
8
+ return z.object({
9
+ name: z.string().describe('Name of the rule.'),
10
+ description: z.string().optional().describe('Description of the rule.'),
11
+ ruleType: z.literal(ruleType).describe('Type of the rule.'),
12
+ status: z
13
+ .enum(['Active', 'Inactive'])
14
+ .optional()
15
+ .default('Active')
16
+ .describe('Status of the rule.'),
17
+ pairs: z
18
+ .array(pairSchema)
19
+ .describe('List of rule pair objects for the rule type.'),
20
+ groupId: z
21
+ .string()
22
+ .optional()
23
+ .describe('ID of the group the rule belongs to.'),
24
+ });
25
+ }
26
+
27
+ // Create a more detailed schema that MCP can understand while maintaining type safety
28
+ const createMCPCompatibleSchema = () => {
29
+ // Base fields that are common to all rules
30
+ const baseFields = {
31
+ name: z.string().describe('Name of the rule.'),
32
+ description: z.string().optional().describe('Description of the rule.'),
33
+ ruleType: z
34
+ .enum([
35
+ 'Redirect',
36
+ 'Cancel',
37
+ 'Replace',
38
+ 'Headers',
39
+ 'UserAgent',
40
+ 'QueryParam',
41
+ 'Request',
42
+ 'Response',
43
+ 'Delay',
44
+ ])
45
+ .describe(
46
+ 'Type of the rule. This determines the structure of the pairs array.'
47
+ ),
48
+ status: z
49
+ .enum(['Active', 'Inactive'])
50
+ .optional()
51
+ .default('Active')
52
+ .describe('Status of the rule.'),
53
+ groupId: z
54
+ .string()
55
+ .optional()
56
+ .describe('ID of the group the rule belongs to.'),
57
+ };
58
+
59
+ // Create detailed pair descriptions for each rule type
60
+ const pairDescriptions = {
61
+ Redirect:
62
+ 'Array of redirect pairs. Each pair must have: source (matching criteria), destinationType (string), destination (target URL)',
63
+ Cancel:
64
+ 'Array of cancel pairs. Each pair must have: source (matching criteria to cancel requests)',
65
+ Replace:
66
+ 'Array of replace pairs. Each pair must have: source (matching criteria), from (string to replace), to (replacement string)',
67
+ Headers:
68
+ 'Array of header pairs. Each pair must have: source (matching criteria), modifications (array of header modifications with header, type, and optional value)',
69
+ UserAgent:
70
+ 'Array of user agent pairs. Each pair must have: source (matching criteria), userAgent (custom user agent string)',
71
+ QueryParam:
72
+ 'Array of query param pairs. Each pair must have: source (matching criteria), modifications (array of param modifications)',
73
+ Request:
74
+ 'Array of request pairs. Each pair must have: type ("code" or "static"), value (request content)',
75
+ Response:
76
+ 'Array of response pairs. Each pair must have: source (matching criteria), response (object with type, value, and optional serveWithoutRequest)',
77
+ Delay:
78
+ 'Array of delay pairs. Each pair must have: source (matching criteria), delay (number in milliseconds)',
79
+ };
80
+
81
+ return {
82
+ ...baseFields,
83
+ pairs: z.array(z.unknown()).describe(
84
+ `List of rule pair objects. Structure depends on ruleType:
85
+
86
+ - Redirect: ${pairDescriptions.Redirect}
87
+ - Cancel: ${pairDescriptions.Cancel}
88
+ - Replace: ${pairDescriptions.Replace}
89
+ - Headers: ${pairDescriptions.Headers}
90
+ - UserAgent: ${pairDescriptions.UserAgent}
91
+ - QueryParam: ${pairDescriptions.QueryParam}
92
+ - Request: ${pairDescriptions.Request}
93
+ - Response: ${pairDescriptions.Response}
94
+ - Delay: ${pairDescriptions.Delay}
95
+
96
+ All source objects must have: key ("Url", "Host", or "Path"), operator ("Equals", "Contains", "Matches", or "Wildcard_Matches"), value (string to match against)`
97
+ ),
98
+ };
99
+ };
100
+
101
+ export const schema = createMCPCompatibleSchema();
102
+
103
+ // Keep the discriminated union for proper validation
104
+ const getRuleSchema = () =>
105
+ z.discriminatedUnion('ruleType', [
106
+ createRuleSchema('Redirect', RedirectPairSchema),
107
+ createRuleSchema('Cancel', CancelPairSchema),
108
+ createRuleSchema('Replace', ReplacePairSchema),
109
+ createRuleSchema('Headers', HeadersPairSchema),
110
+ createRuleSchema('UserAgent', UserAgentPairSchema),
111
+ createRuleSchema('QueryParam', QueryParamPairSchema),
112
+ createRuleSchema('Request', RequestPairSchema),
113
+ createRuleSchema('Response', ResponsePairSchema),
114
+ createRuleSchema('Delay', DelayPairSchema),
115
+ ]);
116
+
117
+ export const ruleSchema = getRuleSchema();
118
+
119
+ // Type for the validated args
120
+ export type ValidatedRuleArgs = z.infer<typeof ruleSchema>;
@@ -0,0 +1,101 @@
1
+ import { z } from 'zod';
2
+
3
+ export const SourceSchema = z.object({
4
+ key: z.enum(['Url', 'Host', 'Path']).describe('Source key for matching: Url, Host, or Path.'),
5
+ operator: z.enum(['Equals', 'Contains', 'Matches', 'Wildcard_Matches']).describe('Operator for matching: Equals, Contains, Matches, or Wildcard_Matches.'),
6
+ value: z.string().describe('Value to match against.'),
7
+ filters: z.object({
8
+ requestMethod: z.array(z.string()).optional().describe('Array of allowed HTTP methods for matching.'),
9
+ requestPayload: z.object({
10
+ key: z.string().describe('Key in the request payload.'),
11
+ value: z.string().describe('Value for the request payload key.'),
12
+ }).optional().describe('Request payload filter.'),
13
+ }).optional().describe('Optional filters for advanced matching.'),
14
+ }).describe('Source matching criteria for a rule.');
15
+
16
+ // All pair schemas...
17
+ export const RedirectPairSchema = z.object({
18
+ source: SourceSchema,
19
+ destinationType: z.string().describe('Type of destination for redirect.'),
20
+ destination: z.string().describe('Target URL for redirect.'),
21
+ }).describe('Redirect rule pair: source and destination info.');
22
+
23
+ export const CancelPairSchema = z.object({
24
+ source: SourceSchema,
25
+ }).describe('Cancel rule pair: source info only.');
26
+
27
+ export const ReplacePairSchema = z.object({
28
+ source: SourceSchema,
29
+ from: z.string().describe('String to replace.'),
30
+ to: z.string().describe('Replacement string.'),
31
+ }).describe('Replace rule pair: source, from, and to info.');
32
+
33
+ export const HeaderModificationSchema = z.object({
34
+ header: z.string().describe('Header name to modify.'),
35
+ type: z.enum(['Add', 'Remove', 'Modify']).describe('Modification type: Add, Remove, or Modify.'),
36
+ value: z.string().optional().describe('Optional value for header modification.'),
37
+ }).describe('Header modification details.');
38
+
39
+ export const HeadersPairSchema = z.object({
40
+ source: SourceSchema,
41
+ modifications: z.object({
42
+ Request: z.array(HeaderModificationSchema).optional().describe('Request header modifications.'),
43
+ Response: z.array(HeaderModificationSchema).optional().describe('Response header modifications.'),
44
+ }).describe('Header modifications for request/response.'),
45
+ }).describe('Headers rule pair: source and modifications.');
46
+
47
+ export const UserAgentPairSchema = z.object({
48
+ source: SourceSchema,
49
+ userAgent: z.string().describe('Custom user agent string.'),
50
+ }).describe('User agent rule pair: source and user agent.');
51
+
52
+ export const QueryParamModificationSchema = z.object({
53
+ param: z.string().describe('Query parameter name.'),
54
+ type: z.enum(['Add', 'Remove', 'Remove All']).describe('Modification type for query param.'),
55
+ value: z.string().optional().describe('Optional value for query param modification.'),
56
+ }).describe('Query parameter modification details.');
57
+
58
+ export const QueryParamPairSchema = z.object({
59
+ source: SourceSchema,
60
+ modifications: z.array(QueryParamModificationSchema).describe('Array of query parameter modifications.'),
61
+ }).describe('Query parameter rule pair: source and modifications.');
62
+
63
+ export const RequestPairSchema = z.object({
64
+ source: SourceSchema,
65
+ request: z.object({
66
+ type: z.enum(['code', 'static']).describe('Request type: code or static.'),
67
+ value: z.string().describe('Request content.'),
68
+ }).describe('Request details.'),
69
+ }).describe('Request rule pair: source and request.');
70
+
71
+ export const ResponsePairSchema = z.object({
72
+ source: SourceSchema,
73
+ response: z.object({
74
+ type: z.enum(['code', 'static']).describe('Response type: code or static.'),
75
+ value: z.string().describe('Response content.'),
76
+ resourceType: z.string().optional().describe('Optional resource type for response.'),
77
+ statusCode: z.union([z.string(), z.number()]).optional().describe('Optional status code for response.'),
78
+ statusText: z.string().optional().describe('Optional status text for response.'),
79
+ serveWithoutRequest: z.boolean().optional().describe('Whether to serve response without request.'),
80
+ }).describe('Response details.'),
81
+ }).describe('Response rule pair: source and response.');
82
+
83
+ export const DelayPairSchema = z.object({
84
+ source: SourceSchema,
85
+ delay: z.string().refine((val) => /^\d+$/.test(val), {
86
+ message: 'Delay must be a string containing a number',
87
+ }).describe('Delay value in milliseconds (stringified number).'),
88
+ }).describe('Delay rule pair: source and delay.');
89
+
90
+ // Rule type enum
91
+ export const RuleTypeEnum = z.enum([
92
+ 'Redirect',
93
+ 'Cancel',
94
+ 'Replace',
95
+ 'Headers',
96
+ 'UserAgent',
97
+ 'QueryParam',
98
+ 'Request',
99
+ 'Response',
100
+ 'Delay',
101
+ ]).describe('Enumeration of all supported rule types.');
@@ -0,0 +1,133 @@
1
+ import z from 'zod';
2
+ import {
3
+ CancelPairSchema,
4
+ DelayPairSchema,
5
+ HeadersPairSchema,
6
+ QueryParamPairSchema,
7
+ RedirectPairSchema,
8
+ ReplacePairSchema,
9
+ RequestPairSchema,
10
+ ResponsePairSchema,
11
+ RuleTypeEnum,
12
+ UserAgentPairSchema,
13
+ } from './ruleSchemas.js';
14
+
15
+ // Create individual rule schemas
16
+ function updateRuleSchema<T extends z.infer<typeof RuleTypeEnum>>(
17
+ ruleType: T,
18
+ pairSchema: z.ZodType<any>
19
+ ) {
20
+ return z.object({
21
+ ruleId: z.string().describe('Unique identifier for the rule.').optional(),
22
+ name: z.string().describe('Name of the rule.').optional(),
23
+ description: z.string().optional().describe('Description of the rule.'),
24
+ ruleType: z.literal(ruleType).describe('Type of the rule.'),
25
+ status: z
26
+ .enum(['Active', 'Inactive'])
27
+ .optional()
28
+ .default('Active')
29
+ .describe('Status of the rule.'),
30
+ pairs: z
31
+ .array(pairSchema)
32
+ .optional()
33
+ .describe('List of rule pair objects for the rule type.'),
34
+ objectType: z
35
+ .literal('rule')
36
+ .describe('Type of the object, always "rule".').default("rule"),
37
+ });
38
+ }
39
+
40
+ // Create a more detailed schema that MCP can understand while maintaining type safety
41
+ const createMCPCompatibleSchema = () => {
42
+ // Base fields that are common to all rules
43
+ const baseFields = {
44
+ ruleId: z.string().describe('Unique identifier for the rule.').optional(),
45
+ name: z.string().describe('Name of the rule.').optional(),
46
+ description: z.string().optional().describe('Description of the rule.'),
47
+ ruleType: z
48
+ .enum([
49
+ 'Redirect',
50
+ 'Cancel',
51
+ 'Replace',
52
+ 'Headers',
53
+ 'UserAgent',
54
+ 'QueryParam',
55
+ 'Request',
56
+ 'Response',
57
+ 'Delay',
58
+ ])
59
+ .describe(
60
+ 'Type of the rule. This determines the structure of the pairs array.'
61
+ ),
62
+ status: z
63
+ .enum(['Active', 'Inactive'])
64
+ .optional()
65
+ .default('Active')
66
+ .describe('Status of the rule.'),
67
+ objectType: z
68
+ .literal('rule')
69
+ .describe('Type of the object, always "rule".').default("rule"),
70
+ };
71
+
72
+ // Create detailed pair descriptions for each rule type
73
+ const pairDescriptions = {
74
+ Redirect:
75
+ 'Array of redirect pairs. Each pair must have: source (matching criteria), destinationType (string), destination (target URL)',
76
+ Cancel:
77
+ 'Array of cancel pairs. Each pair must have: source (matching criteria to cancel requests)',
78
+ Replace:
79
+ 'Array of replace pairs. Each pair must have: source (matching criteria), from (string to replace), to (replacement string)',
80
+ Headers:
81
+ 'Array of header pairs. Each pair must have: source (matching criteria), modifications (array of header modifications with header, type, and optional value)',
82
+ UserAgent:
83
+ 'Array of user agent pairs. Each pair must have: source (matching criteria), userAgent (custom user agent string)',
84
+ QueryParam:
85
+ 'Array of query param pairs. Each pair must have: source (matching criteria), modifications (array of param modifications)',
86
+ Request:
87
+ 'Array of request pairs. Each pair must have: type ("code" or "static"), value (request content)',
88
+ Response:
89
+ 'Array of response pairs. Each pair must have: source (matching criteria), response (object with type, value, and optional serveWithoutRequest)',
90
+ Delay:
91
+ 'Array of delay pairs. Each pair must have: source (matching criteria), delay (number in milliseconds)',
92
+ };
93
+
94
+ return {
95
+ ...baseFields,
96
+ pairs: z.array(z.unknown()).describe(
97
+ `List of rule pair objects. Structure depends on ruleType:
98
+
99
+ - Redirect: ${pairDescriptions.Redirect}
100
+ - Cancel: ${pairDescriptions.Cancel}
101
+ - Replace: ${pairDescriptions.Replace}
102
+ - Headers: ${pairDescriptions.Headers}
103
+ - UserAgent: ${pairDescriptions.UserAgent}
104
+ - QueryParam: ${pairDescriptions.QueryParam}
105
+ - Request: ${pairDescriptions.Request}
106
+ - Response: ${pairDescriptions.Response}
107
+ - Delay: ${pairDescriptions.Delay}
108
+
109
+ All source objects must have: key ("Url", "Host", or "Path"), operator ("Equals", "Contains", "Matches", or "Wildcard_Matches"), value (string to match against)`
110
+ ),
111
+ };
112
+ };
113
+
114
+ export const schema = createMCPCompatibleSchema();
115
+
116
+ // Keep the discriminated union for proper validation
117
+ const getRuleSchema = () =>
118
+ z.discriminatedUnion('ruleType', [
119
+ updateRuleSchema('Redirect', RedirectPairSchema),
120
+ updateRuleSchema('Cancel', CancelPairSchema),
121
+ updateRuleSchema('Replace', ReplacePairSchema),
122
+ updateRuleSchema('Headers', HeadersPairSchema),
123
+ updateRuleSchema('UserAgent', UserAgentPairSchema),
124
+ updateRuleSchema('QueryParam', QueryParamPairSchema),
125
+ updateRuleSchema('Request', RequestPairSchema),
126
+ updateRuleSchema('Response', ResponsePairSchema),
127
+ updateRuleSchema('Delay', DelayPairSchema),
128
+ ]);
129
+
130
+ export const ruleSchema = getRuleSchema();
131
+
132
+ // Type for the validated args
133
+ export type ValidatedRuleArgs = z.infer<typeof ruleSchema>;
package/tsconfig.json ADDED
@@ -0,0 +1,113 @@
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": "ES2022", /* 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": "Node16", /* Specify what module code is generated. */
30
+ "rootDir": "./src", /* Specify the root folder within your source files. */
31
+ // "moduleResolution": "node10", /* 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": "./build", /* 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
+ }