-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Tsconfig zh #1268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Tsconfig zh #1268
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
6d79fcd
Add zh of tsconfig reference
Kingwl 363d7fb
(zh) Add allowSyntheticDefaultImports
Kingwl 97c5a25
(zh) Add esModuleInterop
Kingwl 79d75d2
currect name
Kingwl d13eb95
(zh) add module resolution
Kingwl eeea894
Fix commonjs
Kingwl 95643ad
Update cr issue
Kingwl 0ab6a91
Remove no completed file
Kingwl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
9 changes: 5 additions & 4 deletions
9
packages/tsconfig-reference/copy/zh/options/allowUmdGlobalAccess.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
--- | ||
display: "Allow Umd Global Access" | ||
oneline: "Assume UMD imports are all globally available" | ||
display: "允许 Umd 全局使用" | ||
oneline: "假设 UMD 的导入是全局可用的" | ||
--- | ||
|
||
When set to true, `allowUmdGlobalAccess` lets you access UMD exports as globals from inside module files. A module file is a file that has imports and/or exports. Without this flag, using an export from a UMD module requires an import declaration. | ||
当 `allowUmdGlobalAccess` 设置为 true 时,将允许你在模块文件中以全局变量的形式使用 UMD 的导出。 | ||
Kingwl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
模块文件是具有或同时导入、导出的文件。当未设置这个选项时,使用 UMD 模块的导出需要首先导入声明。 | ||
|
||
An example use case for this flag would be a web project where you know the particular library (like jQuery or Lodash) will always be available at runtime, but you can’t access it with an import. | ||
一个典型场景是:在一个 Web 项目中, 您知道特定的库(如 jQuery 或 Lodash )在运行时总是可用的,但您不能在通过导入来使用他们。 | ||
Kingwl marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
packages/tsconfig-reference/copy/zh/options/moduleResolution.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
--- | ||
display: "Module Resolution" | ||
oneline: "Allow TypeScript 1.6 module resolution strategies" | ||
display: "模块解析" | ||
oneline: "允许 TypeScript 1.6 的模块解析策略" | ||
--- | ||
|
||
Specify the module resolution strategy: `'node'` (Node.js) or `'classic'` (used in TypeScript before the release of 1.6). | ||
You probably won't need to use `classic` in modern code. | ||
指定模块解析策略:`'node'` (Node.js) 或 `'classic'` (在 TypeScript 1.6 版本之前使用)。 | ||
你可能不需要在新代码中使用 `classic`。 | ||
|
||
There is a handbook reference page on [Module Resolution](/docs/handbook/module-resolution.html) | ||
这里有一个关于[模块解析](/docs/handbook/module-resolution.html)的手册参考。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
packages/tsconfig-reference/copy/zh/options/preserveSymlinks.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
--- | ||
display: "Preserve Symlinks" | ||
oneline: "Do not resolve symlink paths" | ||
display: "保留符号链接" | ||
oneline: "不解析符号链接路径" | ||
--- | ||
|
||
This is to reflect the same flag in Node.js; which does not resolve the real path of symlinks. | ||
这是为了匹配 Node.js 中相同的选项,它不解析符号链接的真实路径。 | ||
|
||
This flag also exhibits the opposite behavior to Webpack’s `resolve.symlinks` option (i.e. setting TypeScript’s `preserveSymlinks` to true parallels setting Webpack’s `resolve.symlinks` to false, and vice-versa). | ||
这个选项也表现出与 Webpack 中 `resolve.symlinks` 选项相反的行为(即设置 TypeScript 的 `preserveSymlinks` 为 true, 与之对应的 Webpack 的 `resolve.symlinks` 为 false。反之亦然) | ||
|
||
With this enabled, references to modules and packages (e.g. `import`s and `/// <reference type="..." />` directives) are all resolved relative to the location of the symbolic link file, rather than relative to the path that the symbolic link resolves to. | ||
启用后,对于模块和包的引用(例如 `import` 和 `/// <reference type="..." />` 指令都相对于符号链接所在的位置进行解析,而不是相对于符号链接解析后的路径。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.