@proteinjs/conversation 1.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.
Files changed (76) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/LICENSE +21 -0
  3. package/dist/index.js +27 -0
  4. package/dist/jest.config.js +10 -0
  5. package/dist/src/CodegenConversation.js +120 -0
  6. package/dist/src/Conversation.js +193 -0
  7. package/dist/src/ConversationModule.js +2 -0
  8. package/dist/src/Function.js +2 -0
  9. package/dist/src/OpenAi.js +209 -0
  10. package/dist/src/Paragraph.js +18 -0
  11. package/dist/src/Sentence.js +22 -0
  12. package/dist/src/code_template/Code.js +41 -0
  13. package/dist/src/code_template/CodeTemplate.js +39 -0
  14. package/dist/src/code_template/CodeTemplateModule.js +46 -0
  15. package/dist/src/code_template/Repo.js +127 -0
  16. package/dist/src/fs/conversation_fs/ConversationFsModerator.js +99 -0
  17. package/dist/src/fs/conversation_fs/ConversationFsModule.js +68 -0
  18. package/dist/src/fs/conversation_fs/FsFunctions.js +256 -0
  19. package/dist/src/fs/git/GitModule.js +45 -0
  20. package/dist/src/fs/keyword_to_files_index/KeywordToFilesIndexFunctions.js +65 -0
  21. package/dist/src/fs/keyword_to_files_index/KeywordToFilesIndexModule.js +89 -0
  22. package/dist/src/fs/package/PackageFunctions.js +214 -0
  23. package/dist/src/fs/package/PackageModule.js +102 -0
  24. package/dist/src/history/MessageHistory.js +44 -0
  25. package/dist/src/history/MessageModerator.js +2 -0
  26. package/dist/src/template/ConversationTemplate.js +2 -0
  27. package/dist/src/template/ConversationTemplateFunctions.js +54 -0
  28. package/dist/src/template/ConversationTemplateModule.js +80 -0
  29. package/dist/src/template/createApp/CreateAppTemplate.js +40 -0
  30. package/dist/src/template/createCode/CreateCodeConversationTemplate.js +51 -0
  31. package/dist/src/template/createPackage/CreatePackageConversationTemplate.js +54 -0
  32. package/dist/src/template/createPackage/jest.config.js +10 -0
  33. package/dist/src/template/createPackage/tsconfig.json +13 -0
  34. package/dist/test/createKeywordFilesIndex.test.js +17 -0
  35. package/dist/test/openai/openai.generateList.test.js +16 -0
  36. package/dist/test/openai/openai.parseCodeFromMarkdown.test.js +18 -0
  37. package/dist/test/repo/repo.test.js +29 -0
  38. package/dist/test/setup.js +1 -0
  39. package/index.ts +11 -0
  40. package/jest.config.js +9 -0
  41. package/package.json +34 -0
  42. package/src/CodegenConversation.ts +92 -0
  43. package/src/Conversation.ts +207 -0
  44. package/src/ConversationModule.ts +13 -0
  45. package/src/Function.ts +8 -0
  46. package/src/OpenAi.ts +212 -0
  47. package/src/Paragraph.ts +17 -0
  48. package/src/Sentence.ts +20 -0
  49. package/src/code_template/Code.ts +53 -0
  50. package/src/code_template/CodeTemplate.ts +39 -0
  51. package/src/code_template/CodeTemplateModule.ts +50 -0
  52. package/src/code_template/Repo.ts +156 -0
  53. package/src/fs/conversation_fs/ConversationFsModerator.ts +121 -0
  54. package/src/fs/conversation_fs/ConversationFsModule.ts +64 -0
  55. package/src/fs/conversation_fs/FsFunctions.ts +253 -0
  56. package/src/fs/git/GitModule.ts +39 -0
  57. package/src/fs/keyword_to_files_index/KeywordToFilesIndexFunctions.ts +55 -0
  58. package/src/fs/keyword_to_files_index/KeywordToFilesIndexModule.ts +90 -0
  59. package/src/fs/package/PackageFunctions.ts +210 -0
  60. package/src/fs/package/PackageModule.ts +106 -0
  61. package/src/history/MessageHistory.ts +57 -0
  62. package/src/history/MessageModerator.ts +6 -0
  63. package/src/template/ConversationTemplate.ts +12 -0
  64. package/src/template/ConversationTemplateFunctions.ts +43 -0
  65. package/src/template/ConversationTemplateModule.ts +83 -0
  66. package/src/template/createApp/CreateAppTemplate.ts +33 -0
  67. package/src/template/createCode/CreateCodeConversationTemplate.ts +41 -0
  68. package/src/template/createPackage/CreatePackageConversationTemplate.ts +42 -0
  69. package/src/template/createPackage/jest.config.js +9 -0
  70. package/src/template/createPackage/tsconfig.json +13 -0
  71. package/test/createKeywordFilesIndex.test.ts +7 -0
  72. package/test/openai/openai.generateList.test.ts +6 -0
  73. package/test/openai/openai.parseCodeFromMarkdown.test.ts +20 -0
  74. package/test/repo/repo.test.ts +33 -0
  75. package/test/setup.js +0 -0
  76. package/tsconfig.json +109 -0
@@ -0,0 +1,33 @@
1
+ import { getFilePathsMatchingGlobFunctionName } from '../../fs/conversation_fs/FsFunctions';
2
+ import { ConversationTemplate, Question } from '../ConversationTemplate';
3
+
4
+ const createAppQuestions: Question[] = [
5
+ {
6
+ text: 'What is the name of the app you want to create?',
7
+ },
8
+ {
9
+ text: 'Which directory would you like to create the app in?',
10
+ },
11
+ ];
12
+
13
+ const createAppInstructions = async () => {
14
+ // Here we would implement the instructions based on the user's answers to the questions
15
+ return [
16
+ 'create a directory for the app (if it doesnt already exist), with the same name as the app (replace ` ` with `-`)',
17
+ 'cloneAppTemplatePackages on the app directory',
18
+ 'update the package.json files of the packages you just cloned, set the package names to be app-name-ui and app-name-server',
19
+ `update the ui/src/Container.tsx and ui/src/SplashPage.tsx files to replace the occurrences of 'appName' with their app name in each file`,
20
+ 'npmInstall each newly cloned package',
21
+ 'runPackageScript(`build`, cwd) each newly cloned package',
22
+ 'describe the packages',
23
+ 'tell the user they can start the server by calling `npm run dev` in the server package',
24
+ ];
25
+ };
26
+
27
+ export const createAppTemplate: ConversationTemplate = {
28
+ name: 'Create App',
29
+ keywords: ['create', 'app', 'create app', 'create new app'],
30
+ description: 'This template will guide you through the process of creating a new app.',
31
+ questions: createAppQuestions,
32
+ instructions: createAppInstructions,
33
+ };
@@ -0,0 +1,41 @@
1
+ import { fileOrDirectoryExistsFunction, readFilesFunctionName } from '../../fs/conversation_fs/FsFunctions';
2
+ import { generateTypescriptDeclarationsFunction, installPackagesFunction, searchLibrariesFunctionName, searchPackagesFunctionName } from '../../fs/package/PackageFunctions';
3
+ import { ConversationTemplate } from '../ConversationTemplate';
4
+
5
+ export const createCodeConversationTemplate: ConversationTemplate = {
6
+ name: 'Create code',
7
+ keywords: [
8
+ 'create code',
9
+ 'implement',
10
+ 'write code',
11
+ 'generate code',
12
+ 'write software',
13
+ 'build something',
14
+ ],
15
+ description: 'User and ai developing together',
16
+ questions: [],
17
+ instructions: async () => {
18
+ return [
19
+ `You are going to generate code for the user, follow these steps:`,
20
+ `1. Confirm the package they want to work in, if the user didn't already provide one`,
21
+ `1.a. Use the ${searchPackagesFunctionName} function to identify the package.json file path`,
22
+ `1.b. Use the ${readFilesFunctionName} function to read the package.json file, reference this throughout the conversation in the fileSystem`,
23
+ `1.c. Set the cwd to the directory of the package.json file`,
24
+ `2. Ask for a file name to work in, if the user didn't alrady provide one`,
25
+ `2.a. Whenever the user wants to create a new source file, default to creating it in the package src/ folder`,
26
+ `2.b. Confirm the package-relative file path with the user. Only after the users confirms the path, create the file if it doesn't exist`,
27
+ `2.b.1. Use the ${fileOrDirectoryExistsFunction.definition.name} function to confirm if a file exists`,
28
+ `3. Once working in a file, ask the user what they'd like to create`,
29
+ `3.a. If the user references a library, use the ${searchLibrariesFunctionName} function to identify local libraries that can be imported`,
30
+ `3.a.1. Confirm the library file name and package name with the user, if they provide a different library or package name, repeat step 3.a.`,
31
+ `3.a.2. Call the ${generateTypescriptDeclarationsFunction.definition.name} function to get the typescript declaration of the library file`,
32
+ `3.a.3. Use the typescript declaration and the package name to add the import statements to the top of the file`,
33
+ `3.a.4. Use the ${readFilesFunctionName} function on the package.json if it's not in the fileSystem`,
34
+ `3.a.5. Check the pacakge.json dependencies, if the imported package is not already a dependency, use the ${installPackagesFunction.definition.name} function to install it`,
35
+ `3.a.5.a. Use the ${searchPackagesFunctionName} on the import package to derermine if it's in the local repo; if it is, calculate the relative path from the cwd package to the package being installed, use that path as the version when installing the package`,
36
+ `3.b. Generate the code the user asked to create, leveraging the imported library where appropriate`,
37
+ `3.c. When writing the code to file, if updating an existing file, be sure to read the file first to not blow away existing code. Be sure to preserve comments as well.`,
38
+ `4. Repeat 3. unless the user asks to switch packages or files`,
39
+ ];
40
+ }
41
+ }
@@ -0,0 +1,42 @@
1
+ import { Fs } from '@proteinjs/util-node';
2
+ import { ConversationTemplate } from '../ConversationTemplate';
3
+ import path from 'path';
4
+ import tConfig from './tsconfig.json';
5
+
6
+ export const createPackageConversationTemplate: ConversationTemplate = {
7
+ name: 'Create Package',
8
+ keywords: [
9
+ 'package',
10
+ 'create package',
11
+ 'create',
12
+ 'create a package',
13
+ 'create a new package',
14
+ `new package`,
15
+ ],
16
+ description: 'Create a npm package',
17
+ questions: [
18
+ { text: `Which folder should the package be created in?` },
19
+ { text: `What should the package name be?` },
20
+ { text: `What should the package version be?`, optional: true },
21
+ { text: `Is this a typescript project?` },
22
+ { text: `Are there any default dependencies you'd like to include?`, optional: true },
23
+ ],
24
+ instructions: async () => {
25
+ const jestConfig = await Fs.readFile(path.join(__dirname, `./jest.config.js`));
26
+ const tsConfig = await Fs.readFile(path.join(__dirname, `./tsconfig.json`));
27
+ return [
28
+ `Create a new package.json with the provided name, version (if one wasn't provided, default to 0.1), and any default dependencies provided`,
29
+ `Create the package.json in the specified folder, do not create subfolders from the package name`,
30
+ `If the folder does not exist, create the folder`,
31
+ `Add these scripts to the package.json: "start": "node ./dist/index.js", "test": "jest"`,
32
+ `Add these dev dependencies to the package.json: jest`,
33
+ `If it's a typescript project, add these dev dependencies: @types/jest, ts-jest`,
34
+ `If it's a typescript project, add these scripts: "watch": "tsc -w -p ."`,
35
+ `Create an index file in the package root directory (choose extension based on if it's a typescript project or not)`,
36
+ `Create the following folders in the package directory: src, test`,
37
+ `Create a jest.config.js file in the test directory with the following content: ${jestConfig}`,
38
+ `Create a .gitignore file in the package directory that ignores the node_modules and dist directories`,
39
+ `If it's a typescript project, create a tsconfig.json file in the pakage directory with the following content: ${tsConfig}`,
40
+ ];
41
+ },
42
+ }
@@ -0,0 +1,9 @@
1
+ module.exports = {
2
+ preset: 'ts-jest',
3
+ testEnvironment: 'node',
4
+ transform: {
5
+ '^.+\\.tsx?$': 'ts-jest',
6
+ },
7
+ testMatch: ["**/?(*.)+(spec|test).ts"],
8
+ setupFiles: ['./test/setup'],
9
+ };
@@ -0,0 +1,13 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "es2016",
4
+ "module": "commonjs",
5
+ "resolveJsonModule": true,
6
+ "allowJs": true,
7
+ "outDir": "./dist",
8
+ "esModuleInterop": true,
9
+ "forceConsistentCasingInFileNames": true,
10
+ "strict": true,
11
+ "skipLibCheck": true
12
+ }
13
+ }
@@ -0,0 +1,7 @@
1
+ import { KeywordToFilesIndexModuleFactory } from '../src/fs/keyword_to_files_index/KeywordToFilesIndexModule';
2
+
3
+ test('Create keyword-files index', async() => {
4
+ // Example usage
5
+ const index = new KeywordToFilesIndexModuleFactory().createKeywordFilesIndex(`${process.cwd()}`)
6
+ console.log(JSON.stringify(index, null, 2));
7
+ }, 60000)
@@ -0,0 +1,6 @@
1
+ import { OpenAi } from "../../src/OpenAi";
2
+
3
+ test('generateList should return an array of numbers, counting to 10', async () => {
4
+ const numbers = ['one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'];
5
+ expect((await OpenAi.generateList([`Create a list of numbers spelled out, from 1 to 10`])).join(' ')).toBe(numbers.join(' '));
6
+ });
@@ -0,0 +1,20 @@
1
+ import { OpenAi } from "../../src/OpenAi";
2
+
3
+ const helloWorldCode = "console.log('hello world');";
4
+ const helloWorldWithTicksCode = "console.log('hello ```world');";
5
+ const logXCode = "const x = 'yo';\nconsole.log(x);";
6
+ const testOneBlock = "Sure! I'm a helpful chatbot.\n```typescript\n" + helloWorldCode + "\n```";
7
+ const testOneBlockWithExtraTicks = "Sure! I'm a helpful chatbot.\n```typescript\n" + helloWorldWithTicksCode + "\n```";
8
+ const testTwoBlocks = "Sure! I'm a helpful chatbot.\n```typescript\n" + helloWorldCode + "\n```\n\nI'm still really helpful.\n```typescript\n" + logXCode + "\n```\n\nMore unhelpful chat";
9
+
10
+ test('parseCodeFromMarkdown should parse 1 block of code', () => {
11
+ expect(OpenAi.parseCodeFromMarkdown(testOneBlock)).toBe(helloWorldCode);
12
+ });
13
+
14
+ test('parseCodeFromMarkdown should parse 1 block of code that contains ticks', () => {
15
+ expect(OpenAi.parseCodeFromMarkdown(testOneBlockWithExtraTicks)).toBe(helloWorldWithTicksCode);
16
+ });
17
+
18
+ test('parseCodeFromMarkdown should parse 1 block of code', () => {
19
+ expect(OpenAi.parseCodeFromMarkdown(testTwoBlocks)).toBe(helloWorldCode + '\n\n' + logXCode);
20
+ });
@@ -0,0 +1,33 @@
1
+ import { RepoFactory } from '../../src/code_template/Repo';
2
+ // import { Table } from 'conversation/src/table';
3
+ import { Conversation } from '../../src/Conversation';
4
+ import { Fs } from '@proteinjs/util-node';
5
+
6
+
7
+ // test(`Return repo of the source files and the code they depend on`, async () => {
8
+ // const tableTemplatePath = require.resolve('conversation/src/table.ts');
9
+ // const repo = await new RepoFactory([tableTemplatePath]).create();
10
+ // console.log(JSON.stringify(Object.keys(repo.declarations), null, 2));
11
+ // }, 60000);
12
+
13
+ // test(`It should be able to reference code`, async () => {
14
+
15
+ // }, 60000);
16
+
17
+ // test(`Interpret all parameters of a function`, async () => {
18
+
19
+ // }, 60000);
20
+
21
+ // test(`Gather parameter data from the user`, async () => {
22
+ // const conversation = new Conversation();
23
+
24
+ // }, 60000);
25
+
26
+ // test(`Generate code from templates guided by user input`, async () => {
27
+
28
+ // }, 60000);
29
+
30
+ test(`Create repo`, async () => {
31
+ // console.log(JSON.stringify((await RepoFactory.createRepo(`${process.cwd()}`)).params, null, 4));
32
+ // console.log(JSON.stringify(await Fs.getFilesInDirectory(`${process.cwd()}`, ['node_modules', 'dist']), null, 4));
33
+ }, 60000)
package/test/setup.js ADDED
File without changes
package/tsconfig.json ADDED
@@ -0,0 +1,109 @@
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 legacy experimental 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": "node10", /* 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
+ // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
39
+ // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
40
+ // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
41
+ // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
42
+ "resolveJsonModule": true, /* Enable importing .json files. */
43
+ // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
44
+ // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
45
+
46
+ /* JavaScript Support */
47
+ "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
48
+ // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
49
+ // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
50
+
51
+ /* Emit */
52
+ // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
53
+ // "declarationMap": true, /* Create sourcemaps for d.ts files. */
54
+ // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
55
+ // "sourceMap": true, /* Create source map files for emitted JavaScript files. */
56
+ // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
57
+ // "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. */
58
+ "outDir": "./dist", /* Specify an output folder for all emitted files. */
59
+ // "removeComments": true, /* Disable emitting comments. */
60
+ // "noEmit": true, /* Disable emitting files from a compilation. */
61
+ // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63
+ // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64
+ // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65
+ // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
66
+ // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
67
+ // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
68
+ // "newLine": "crlf", /* Set the newline character for emitting files. */
69
+ // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
70
+ // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
71
+ // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
72
+ // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
73
+ // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
74
+ // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
75
+
76
+ /* Interop Constraints */
77
+ // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
78
+ // "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. */
79
+ // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
80
+ "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
81
+ // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
82
+ "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
83
+
84
+ /* Type Checking */
85
+ "strict": true, /* Enable all strict type-checking options. */
86
+ // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
87
+ // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
88
+ // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
89
+ // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
90
+ // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
91
+ // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
92
+ // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
93
+ // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
94
+ // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
95
+ // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
96
+ // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
97
+ // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
98
+ // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
99
+ // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
100
+ // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
101
+ // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
102
+ // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
103
+ // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
104
+
105
+ /* Completeness */
106
+ // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
107
+ "skipLibCheck": true /* Skip type checking all .d.ts files. */
108
+ }
109
+ }