Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/schemas/json/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@
"uniqueItems": true,
"items": {
"type": "string",
"description": "Path mapping to be computed relative to baseUrl option."
"description": "An array of paths to use as alternatives when resolving this module import."
}
},
"markdownDescription": "Specify a set of entries that re-map imports to additional lookup locations.\n\nSee more: https://www.typescriptlang.org/tsconfig#paths"
Expand Down Expand Up @@ -912,6 +912,7 @@
"ES2022.Error",
"ES2022.Intl",
"ES2022.Object",
"ES2022.Regexp",
"ES2022.String",
"ES2022.SharedMemory",
"ES2022.RegExp",
Expand All @@ -936,6 +937,7 @@
"Decorators.Legacy",
"ES2017.Date",
"ES2023.Collection",
"ES2023.Intl",
"ESNext.Decorators",
"ESNext.Disposable",
"ESNext.Error",
Expand Down
4 changes: 3 additions & 1 deletion src/schemas/json/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@
"uniqueItems": true,
"items": {
"type": "string",
"description": "Path mapping to be computed relative to baseUrl option."
"description": "An array of paths to use as alternatives when resolving this module import."
}
},
"markdownDescription": "A series of entries which re-map imports to lookup locations relative to the [`baseUrl`](https://typescriptlang.org/tsconfig/#baseUrl) if set, or to the tsconfig file itself otherwise. There is a larger coverage of `paths` in [the `moduleResolution` reference page](https://typescriptlang.org/docs/handbook/modules/reference.html#paths).\n\n`paths` lets you declare how TypeScript should resolve an import in your `require`/`import`s.\n\n```json tsconfig\n{\n \"compilerOptions\": {\n \"paths\": {\n \"jquery\": [\"./vendor/jquery/dist/jquery\"]\n }\n }\n}\n```\n\nThis would allow you to be able to write `import \"jquery\"`, and get all of the correct typing locally.\n\n```json tsconfig\n{\n \"compilerOptions\": {\n \"paths\": {\n \"app/*\": [\"./src/app/*\"],\n \"config/*\": [\"./src/app/_config/*\"],\n \"environment/*\": [\"./src/environments/*\"],\n \"shared/*\": [\"./src/app/_shared/*\"],\n \"helpers/*\": [\"./src/helpers/*\"],\n \"tests/*\": [\"./src/tests/*\"]\n }\n }\n}\n```\n\nIn this case, you can tell the TypeScript file resolver to support a number of custom prefixes to find code.\n\nNote that this feature does not change how import paths are emitted by `tsc`, so `paths` should only be used to inform TypeScript that another tool has this mapping and will use it at runtime or when bundling.",
Expand Down Expand Up @@ -1013,6 +1013,7 @@
"ES2022.Error",
"ES2022.Intl",
"ES2022.Object",
"ES2022.Regexp",
"ES2022.String",
"ES2022.SharedMemory",
"ES2022.RegExp",
Expand All @@ -1037,6 +1038,7 @@
"Decorators.Legacy",
"ES2017.Date",
"ES2023.Collection",
"ES2023.Intl",
"ESNext.Decorators",
"ESNext.Disposable",
"ESNext.Error",
Expand Down
Loading