Open-source, secure environment with real-world tools for enterprise-grade agents.
Python agentaiai-agentai-agentscode-interpretercopilotdevelopmentdevtoolsgptgpt-4javascriptllmnextjsopenaipythonreactsoftwaretypescript
Docs structure cleanup (#118)
Pavel 'Strajk' Dolecek4fe9576c5971
diff --git a/apps/docs/src/app/attachments/page.mdx b/apps/docs/src/app/_original-template-examples/attachments/page.mdxsimilarity index 100%rename from apps/docs/src/app/attachments/page.mdxrename to apps/docs/src/app/_original-template-examples/attachments/page.mdxdiff --git a/apps/docs/src/app/authentication/page.mdx b/apps/docs/src/app/_original-template-examples/authentication/page.mdxsimilarity index 100%rename from apps/docs/src/app/authentication/page.mdxrename to apps/docs/src/app/_original-template-examples/authentication/page.mdxdiff --git a/apps/docs/src/app/contacts/page.mdx b/apps/docs/src/app/_original-template-examples/contacts/page.mdxsimilarity index 100%rename from apps/docs/src/app/contacts/page.mdxrename to apps/docs/src/app/_original-template-examples/contacts/page.mdxdiff --git a/apps/docs/src/app/conversations/page.mdx b/apps/docs/src/app/_original-template-examples/conversations/page.mdxsimilarity index 100%rename from apps/docs/src/app/conversations/page.mdxrename to apps/docs/src/app/_original-template-examples/conversations/page.mdxdiff --git a/apps/docs/src/app/errors/page.mdx b/apps/docs/src/app/_original-template-examples/errors/page.mdxsimilarity index 100%rename from apps/docs/src/app/errors/page.mdxrename to apps/docs/src/app/_original-template-examples/errors/page.mdxdiff --git a/apps/docs/src/app/groups/page.mdx b/apps/docs/src/app/_original-template-examples/groups/page.mdxsimilarity index 100%rename from apps/docs/src/app/groups/page.mdxrename to apps/docs/src/app/_original-template-examples/groups/page.mdxdiff --git a/apps/docs/src/app/messages/page.mdx b/apps/docs/src/app/_original-template-examples/messages/page.mdxsimilarity index 100%rename from apps/docs/src/app/messages/page.mdxrename to apps/docs/src/app/_original-template-examples/messages/page.mdxdiff --git a/apps/docs/src/app/pagination/page.mdx b/apps/docs/src/app/_original-template-examples/pagination/page.mdxsimilarity index 100%rename from apps/docs/src/app/pagination/page.mdxrename to apps/docs/src/app/_original-template-examples/pagination/page.mdxdiff --git a/apps/docs/src/app/quickstart/page.mdx b/apps/docs/src/app/_original-template-examples/quickstart/page.mdxsimilarity index 100%rename from apps/docs/src/app/quickstart/page.mdxrename to apps/docs/src/app/_original-template-examples/quickstart/page.mdxdiff --git a/apps/docs/src/app/sdks/page.mdx b/apps/docs/src/app/_original-template-examples/sdks/page.mdxsimilarity index 100%rename from apps/docs/src/app/sdks/page.mdxrename to apps/docs/src/app/_original-template-examples/sdks/page.mdxdiff --git a/apps/docs/src/app/webhooks/page.mdx b/apps/docs/src/app/_original-template-examples/webhooks/page.mdxsimilarity index 100%rename from apps/docs/src/app/webhooks/page.mdxrename to apps/docs/src/app/_original-template-examples/webhooks/page.mdxdiff --git a/apps/docs/src/app/getting-started/advanced/page.mdx b/apps/docs/src/app/getting-started/advanced/page.mdxindex e6d0f9c1e..0a04e6cdb 100644--- a/apps/docs/src/app/getting-started/advanced/page.mdx+++ b/apps/docs/src/app/getting-started/advanced/page.mdx@@ -12,43 +12,23 @@ There are some examples:### Timeout creating session-<CodeGroup>-```python {{ language: 'python', snippet: 'python/timeout/timeout_session.py' }}-```-```js {{ language: 'js', snippet: 'js/timeout/timeout_session.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="timeout/timeout_session" />+### Timeout process-<CodeGroup>-```python {{ language: 'python', snippet: 'python/timeout/timeout_process.py' }}-```-```js {{ language: 'js', snippet: 'js/timeout/timeout_process.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="timeout/timeout_process" />### Timeout filesystem operations-<CodeGroup>-```python {{ language: 'python', snippet: 'python/timeout/timeout_filesystem.py' }}-```-```js {{ language: 'js', snippet: 'js/timeout/timeout_filesystem.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="timeout/timeout_filesystem" />## Logging<LanguageSpecificText>- ```python {{ language: 'python', text: "E2B package uses the standard Python logging module You can configure the logging level, handlers and format as you would with any other Python application. \n\nBelow is an example of how to configure the logging module to log to the console." }}- ``````js {{ language: 'js', text: "E2B package logs only warnings & errors to the console by default. Below is an example of how to fully customize the logging levels.\n\nFeel free to override the logger with your own implementation with debug, info, warn, and error methods." }}```+ ```python {{ language: 'python', text: "E2B package uses the standard Python logging module You can configure the logging level, handlers and format as you would with any other Python application. \n\nBelow is an example of how to configure the logging module to log to the console." }}+ ```</LanguageSpecificText>--<CodeGroup>- ```python {{ language: 'python', snippet: 'python/logging/e2b_logging.py' }}- ```- ```js {{ language: 'js', snippet: 'js/logging/e2b_logging.js' }}- ```-</CodeGroup>+<CodeGroupAutoload path="logging/e2b_logging" />diff --git a/apps/docs/src/app/getting-started/basics/page.mdx b/apps/docs/src/app/getting-started/basics/page.mdxindex 8bfa6bb83..dcf6e5009 100644--- a/apps/docs/src/app/getting-started/basics/page.mdx+++ b/apps/docs/src/app/getting-started/basics/page.mdx@@ -20,40 +20,25 @@ There are two main primitives in our SDK that you use to interact with the cloud- [Process](/getting-started/basics#process)## Create AI Playground-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/init.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/init.js' }}-```-</CodeGroup>++<CodeGroupAutoload path="basics/init" />+## Get playground URLEach playground is accessible from the internet via a unique URL of that playground.-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/get_url.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/get_url.js' }}-```-</CodeGroup>++<CodeGroupAutoload path="basics/get_url" />### Get URL for a specific port inside playgroundBelow is an example showing how to get a URL for a port 3000. If there's any server inside the playground listening on port 3000 this would be its URL.-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/get_url_port.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/get_url_port.js' }}-```-</CodeGroup>++<CodeGroupAutoload path="basics/get_url_port" />## Scan open ports inside playground-The following example continuosly scan open ports inside the playground and prints new ones to the console.+The following example continuously scan open ports inside the playground and prints new ones to the console.++<CodeGroupAutoload path="basics/scan_ports" />-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/scan_ports.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/scan_ports.js' }}-```-</CodeGroup>## Filesystem@@ -66,24 +51,14 @@ Here are the basic operations you can do with the filesystem inside a cloud play## List directory content-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/fs_ls.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/fs_ls.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/fs_ls" />## Create directoryA creation of a directory will fail if any directory on the path doesn't exist yet.For example, if you want to create a directory `/home/user/new_dir` and `/home/user` doesn't exist yet, you will get an error.-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/fs_mkdir.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/fs_mkdir.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/fs_mkdir" />## Write to fileWhen writing to a file that doesn't exist, it will get created.@@ -92,28 +67,14 @@ When writing to a file that already exists, it will get overwritten.When writing to a file that's in a directory that doesn't exist, you'll get an error.-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/fs_write.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/fs_write.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/fs_write" />## Read file-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/fs_read.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/fs_read.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/fs_read" />## Watch directory for changes-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/fs_watch.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/fs_watch.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/fs_watch" />+## ProcessHere are the basic operations you can do with the process inside a cloud playground:@@ -124,41 +85,16 @@ Here are the basic operations you can do with the process inside a cloud playgro- [Stream stderr](/getting-started/basics#stream-stderr)## Start process-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/process_start.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/process_start.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/process_start" />## Stop process-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/process_stop.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/process_stop.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/process_stop" />## Stream stdout-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/process_stream_stdout.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/process_stream_stdout.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/process_stream_stdout" />## Send stdin-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/process_write_stdin.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/process_write_stdin.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/process_write_stdin" />## Stream stderr-<CodeGroup>-```python {{ language: 'python', snippet: 'python/basics/process_stream_stderr.py' }}-```-```js {{ language: 'js', snippet: 'js/basics/process_stream_stderr.js' }}-```-</CodeGroup>+<CodeGroupAutoload path="basics/process_stream_stderr" />diff --git a/apps/docs/src/app/getting-started/installation/page.mdx b/apps/docs/src/app/getting-started/installation/page.mdxindex 10be577b8..30594dc4b 100644--- a/apps/docs/src/app/getting-started/installation/page.mdx+++ b/apps/docs/src/app/getting-started/installation/page.mdx@@ -12,11 +12,6 @@ You can install them using the following commands:```bash {{ language: 'js' }}npm install @e2b/sdk```--```bash {{ language: 'ts' }}-npm install @e2b/sdk-```-```bash {{ language: 'python' }}pip install e2b```diff --git a/apps/docs/src/app/page.mdx b/apps/docs/src/app/page.mdxindex ad453c111..c71c69ce9 100644--- a/apps/docs/src/app/page.mdx+++ b/apps/docs/src/app/page.mdx@@ -41,27 +41,17 @@ Our SDK works with any AI agent (no matter what framework you're using), and wit</div>## Quickstart Example+<CodeGroup>+```bash {{ language: 'js' }}npm i @e2b/sdk```--```bash {{ language: 'ts' }}-npm i @e2b/sdk-```-```bash {{ language: 'python' }}pip install e2b```-</CodeGroup>-<CodeGroup>-```js {{ language: 'js', snippet: 'js/quickstart.js' }}-```+</CodeGroup>-```ts {{ language: 'ts', snippet: 'ts/quickstart.ts' }}-```+<CodeGroupAutoload path="quickstart" />-```python {{ language: 'python', snippet: 'python/quickstart.py' }}-```-</CodeGroup>\ No newline at end of filediff --git a/apps/docs/src/app/playgrounds/overview/page.mdx b/apps/docs/src/app/playgrounds/overview/page.mdxindex c5d14f93f..2f0a9903c 100644--- a/apps/docs/src/app/playgrounds/overview/page.mdx+++ b/apps/docs/src/app/playgrounds/overview/page.mdx@@ -11,7 +11,7 @@ You can think about the playground as a small virtual machine for your AI.Each active instance of your AI agent or app gets its own AI playground. You can create as many AI playgrounds as you want. AI playgrounds are created on-demand and are destroyed when not in use.-The AI playgorunds run on E2B's cloud infrastructure. Use our [SDK](/getting-started/installation) to create and control the AI playground.+The AI playgrounds run on E2B's cloud infrastructure. Use our [SDK](/getting-started/installation) to create and control the AI playground.{/* ## Use cases- Use case 1diff --git a/apps/docs/src/code/ts/package-lock.json b/apps/docs/src/code/ts/package-lock.jsondeleted file mode 100644index febfe67a9..000000000--- a/apps/docs/src/code/ts/package-lock.json+++ /dev/null@@ -1,156 +0,0 @@-{- "name": "ts",- "version": "1.0.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "ts",- "version": "1.0.0",- "license": "ISC",- "dependencies": {- "@e2b/sdk": "^0.1.0"- },- "devDependencies": {- "typescript": "^5.1.6"- }- },- "node_modules/@e2b/sdk": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/@e2b/sdk/-/sdk-0.1.0.tgz",- "integrity": "sha512-FtJ3s2uzIfXAxn81WJCM7/3paN3I7jGubwaiTQxED4eYNLEnhY+pCe6AGoAmdfGoZHahsX2ZcIRRxQXCAExrJg==",- "dependencies": {- "cross-fetch": "^3.1.5",- "normalize-path": "^3.0.0",- "openapi-typescript-fetch": "^1.1.3",- "rpc-websocket-client": "^1.1.4"- }- },- "node_modules/cross-fetch": {- "version": "3.1.8",- "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.8.tgz",- "integrity": "sha512-cvA+JwZoU0Xq+h6WkMvAUqPEYy92Obet6UdKLfW60qn99ftItKjB5T+BkyWOFWe2pUyfQ+IJHmpOTznqk1M6Kg==",- "dependencies": {- "node-fetch": "^2.6.12"- }- },- "node_modules/isomorphic-ws": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/isomorphic-ws/-/isomorphic-ws-4.0.1.tgz",- "integrity": "sha512-BhBvN2MBpWTaSHdWRb/bwdZJ1WaehQ2L1KngkCkfLUGF0mAWAT1sQUQacEmQ0jXkFw/czDXPNQSL5u2/Krsz1w==",- "peerDependencies": {- "ws": "*"- }- },- "node_modules/node-fetch": {- "version": "2.6.13",- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.13.tgz",- "integrity": "sha512-StxNAxh15zr77QvvkmveSQ8uCQ4+v5FkvNTj0OESmiHu+VRi/gXArXtkWMElOsOUNLtUEvI4yS+rdtOHZTwlQA==",- "dependencies": {- "whatwg-url": "^5.0.0"- },- "engines": {- "node": "4.x || >=6.0.0"- },- "peerDependencies": {- "encoding": "^0.1.0"- },- "peerDependenciesMeta": {- "encoding": {- "optional": true- }- }- },- "node_modules/normalize-path": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/openapi-typescript-fetch": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/openapi-typescript-fetch/-/openapi-typescript-fetch-1.1.3.tgz",- "integrity": "sha512-smLZPck4OkKMNExcw8jMgrMOGgVGx2N/s6DbKL2ftNl77g5HfoGpZGFy79RBzU/EkaO0OZpwBnslfdBfh7ZcWg==",- "engines": {- "node": ">= 12.0.0",- "npm": ">= 7.0.0"- }- },- "node_modules/rpc-websocket-client": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/rpc-websocket-client/-/rpc-websocket-client-1.1.4.tgz",- "integrity": "sha512-UDMVcsNDJ3WET+0EFdmseYX+60MOCA3BpgpZ5dbtiGsqHo+9uWfgNbPZ4iGDtNcX+EUhCt/Y7C0fTmUU3CkkWA==",- "dependencies": {- "isomorphic-ws": "^4.0.1",- "uuid": "^3.3.3",- "ws": "^7.1.2"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/tr46": {- "version": "0.0.3",- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="- },- "node_modules/typescript": {- "version": "5.1.6",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.1.6.tgz",- "integrity": "sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA==",- "dev": true,- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=14.17"- }- },- "node_modules/uuid": {- "version": "3.4.0",- "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz",- "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==",- "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.",- "bin": {- "uuid": "bin/uuid"- }- },- "node_modules/webidl-conversions": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="- },- "node_modules/whatwg-url": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",- "dependencies": {- "tr46": "~0.0.3",- "webidl-conversions": "^3.0.0"- }- },- "node_modules/ws": {- "version": "7.5.9",- "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz",- "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==",- "engines": {- "node": ">=8.3.0"- },- "peerDependencies": {- "bufferutil": "^4.0.1",- "utf-8-validate": "^5.0.2"- },- "peerDependenciesMeta": {- "bufferutil": {- "optional": true- },- "utf-8-validate": {- "optional": true- }- }- }- }-}diff --git a/apps/docs/src/code/ts/package.json b/apps/docs/src/code/ts/package.jsondeleted file mode 100644index 1c03059c3..000000000--- a/apps/docs/src/code/ts/package.json+++ /dev/null@@ -1,18 +0,0 @@-{- "name": "ts",- "version": "1.0.0",- "description": "",- "main": "index.js",- "scripts": {- "test": "echo \"Error: no test specified\" && exit 1"- },- "keywords": [],- "author": "",- "license": "ISC",- "devDependencies": {- "typescript": "^5.1.6"- },- "dependencies": {- "@e2b/sdk": "^0.1.0"- }-}diff --git a/apps/docs/src/code/ts/quickstart.ts b/apps/docs/src/code/ts/quickstart.tsdeleted file mode 100644index de29701a6..000000000--- a/apps/docs/src/code/ts/quickstart.ts+++ /dev/null@@ -1,13 +0,0 @@-import { Session } from '@e2b/sdk'--const E2B_API_KEY = process.env.E2B_API_KEY!--// `id` can also be one of:-// 'Nodejs', 'Bash', 'Python3', 'Java', 'Go', 'Rust', 'PHP', 'Perl', 'DotNET'-// We're working on custom environments.-const session = await Session.create({- id: 'Nodejs',- apiKey: E2B_API_KEY,-})--await session.close()\ No newline at end of filediff --git a/apps/docs/src/code/ts/tsconfig.json b/apps/docs/src/code/ts/tsconfig.jsondeleted file mode 100644index 0c4fd4969..000000000--- a/apps/docs/src/code/ts/tsconfig.json+++ /dev/null@@ -1,110 +0,0 @@-{- "compilerOptions": {- /* Visit https://aka.ms/tsconfig to read more about this file */-- /* Projects */- // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */- // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */- // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */- // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */- // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */- // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */-- /* Language and Environment */- "target": "es2017" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */,- // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */- // "jsx": "preserve", /* Specify what JSX code is generated. */- // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */- // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */- // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */- // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */- // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */- // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */- // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */- // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */- // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */-- /* Modules */- "module": "esnext" /* Specify what module code is generated. */,- // "rootDir": "./", /* Specify the root folder within your source files. */- "moduleResolution": "nodenext",- // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */- // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */- // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */- // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */- // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */- // "types": [], /* Specify type package names to be included without being referenced in a source file. */- // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */- // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */- // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */- // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */- // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */- // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */- // "resolveJsonModule": true, /* Enable importing .json files. */- // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */- // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */-- /* JavaScript Support */- // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */- // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */- // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */-- /* Emit */- // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */- // "declarationMap": true, /* Create sourcemaps for d.ts files. */- // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */- // "sourceMap": true, /* Create source map files for emitted JavaScript files. */- // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */- // "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. */- // "outDir": "./", /* Specify an output folder for all emitted files. */- // "removeComments": true, /* Disable emitting comments. */- // "noEmit": true, /* Disable emitting files from a compilation. */- // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */- // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */- // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */- // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */- // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */- // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */- // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */- // "newLine": "crlf", /* Set the newline character for emitting files. */- // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */- // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */- // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */- // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */- // "declarationDir": "./", /* Specify the output directory for generated declaration files. */- // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */-- /* Interop Constraints */- // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */- // "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. */- // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */- "esModuleInterop": true /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */,- // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */- "forceConsistentCasingInFileNames": true /* Ensure that casing is correct in imports. */,-- /* Type Checking */- "strict": true /* Enable all strict type-checking options. */,- // "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */- // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */- // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */- // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */- // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */- // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */- // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */- // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */- // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */- // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */- // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */- // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */- // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */- // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */- // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */- // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */- // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */- // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */-- /* Completeness */- // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */- "skipLibCheck": true /* Skip type checking all .d.ts files. */- }-}