Skip to content

Translate/some options into ja 2 #314

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 3 commits into from
Mar 10, 2020
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
display: "Disable Size Limit"
oneline: "Remove the memory cap on the TypeScript language server"
---

非常に大規模なJavaScriptプロジェクトで作業するときに発生する可能性のある使用メモリの膨張を避けるために、TypeScriptが割り当てられるメモリの量には上限があります。このフラグを設定すると、この制限を取り除きます。
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
display: "Disable Solution Searching"
oneline: " Opt a project out of multi-project reference checking"
---

[複合TypeScriptプロジェクト](/docs/handbook/project-references.html)で作業する場合、このオプションはエディタで_find all references_や_定義へ移動_などの機能を使う際に含めたくないプロジェクトを宣言する方法を提供します。

このフラグは大規模な複合プロジェクトで応答性を高めるために使用できるものです。
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
display: "Disable Source Project Reference Redirect"
oneline: "Use d.ts files as the source of truth for tooling between composite project boundries"
---

[複合TypeScriptプロジェクト](/docs/handbook/project-references.html)で作業する場合、このオプションはモジュール間の境界としてd.tsファイルが使用されていた[3.7以前](/docs/handbook/release-notes/typescript-3-7.html#build-free-editing-with-project-references)の挙動に戻す方法を提供します。
3.7にて、信頼できる情報源はTypeScriptのファイルになりました。
38 changes: 38 additions & 0 deletions packages/tsconfig-reference/copy/ja/options/noEmitHelpers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
display: "No Emit Helpers"
oneline: "Assume helpers are available in the global runtime"
---

[`importHelpers`](#importHelpers)を使って、ヘルパ関数をインポートする代わりに、グローバルスコープに使用するヘルパ関数のための実装を提供し、ヘルパ関数が出力されるのを完全に無効にできます。

例えば、この`async`関数をES5で実行するためには、`await`のような関数と`generator`のような関数が必要です:

```ts twoslash
const getAPI = async (url: string) => {
// Get API
return {};
};
```

これは、とても多くのJavaScriptを生成します:

```ts twoslash
// @showEmit
// @target: ES5
const getAPI = async (url: string) => {
// Get API
return {};
};
```

このフラグを通じて、独自のグローバル実装に切り替えられます:

```ts twoslash
// @showEmit
// @target: ES5
// @noEmitHelpers
const getAPI = async (url: string) => {
// Get API
return {};
};
```
23 changes: 23 additions & 0 deletions packages/tsconfig-reference/copy/ja/options/noImplicitUseStrict.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
display: "No Implicit Use Strict"
oneline: "Disable 'use strict' in the JS emit"
---

これは必要ないはずです。ES6でないターゲットでモジュールを出力する際に、TypeScriptはデフォルトで`"use strict;"`という前置きをファイルの一番始めに出力します。
この設定は、この前置きを無効にします。

```ts twoslash
// @showEmit
// @target: ES3
// @module: AMD
// @noImplicitUseStrict
// @alwaysStrict: false
export function fn() {}
```

```ts twoslash
// @showEmit
// @target: ES3
// @module: AMD
export function fn() {}
```