Skip to content

fix typo #95

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 2 commits into from
Dec 22, 2019
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
2 changes: 1 addition & 1 deletion docs/compiler/overview.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# コンパイラ
typescriptコンパイラのソースは、[`src/compiler`](https://github.com/Microsoft/TypeScript/tree/master/src/compiler)フォルダの下にあります。
TypeScriptコンパイラのソースは、[`src/compiler`](https://github.com/Microsoft/TypeScript/tree/master/src/compiler)フォルダの下にあります。

それは以下の主要な部分に分割されます:
* Scanner(`scanner.ts`)
Expand Down
2 changes: 1 addition & 1 deletion docs/compiler/scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ SemicolonToken 13 14
```

### スタンドアロンScanner
typescript ParserはシングルトンのScannerを持っていますが、`createScanner`を使ってスタンドアロンScannerを作成し、`setText`/`setTextPos`を使って、一興のためにファイル内の異なる位置をスキャンすることができます。
TypeScript ParserはシングルトンのScannerを持っていますが、`createScanner`を使ってスタンドアロンScannerを作成し、`setText`/`setTextPos`を使って、一興のためにファイル内の異なる位置をスキャンすることができます。
4 changes: 2 additions & 2 deletions docs/quick/nodejs.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ TypeScriptは、Node.jsを公式にサポートしています。素早くNode.j
これで、`npm start`を実行し、`index.ts`を編集することができます:

* nodemonはそのコマンド(ts-node)を再実行する
* ts-nodeは自動的にtsconfig.jsonとインストールされたtypescriptバージョンを取得し、トランスパイルを行う
* ts-nodeは出力されたjavascriptをNode.jsで実行する
* ts-nodeは自動的にtsconfig.jsonとインストールされたTypeScriptバージョンを取得し、トランスパイルを行う
* ts-nodeは出力されたJavaScriptをNode.jsで実行する

## TypeScriptのnode moduleを作成する

Expand Down
2 changes: 1 addition & 1 deletion docs/types/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ callMe('jenny', '5309');

# アンビエント宣言

以前は、なぜtypescript?*というセクションのアンビエント宣言について簡単に見てきました。 TypeScriptの主要な設計目標の1つは、既存のJavaScriptライブラリを簡単に使用できるようにすることです。 * ambient宣言*を使用して、既存のJavaScriptの型情報を宣言することができます。あなたは `declare`キーワードを使って周囲のものを宣言します。実際、これは、ブラウザ環境(例えば `window`、`document`など)でデフォルトで利用できるたくさんのものが `lib.d.ts`というファイルでどのように宣言されているかです
以前は、なぜTypeScript?*というセクションのアンビエント宣言について簡単に見てきました。 TypeScriptの主要な設計目標の1つは、既存のJavaScriptライブラリを簡単に使用できるようにすることです。 * ambient宣言*を使用して、既存のJavaScriptの型情報を宣言することができます。あなたは `declare`キーワードを使って周囲のものを宣言します。実際、これは、ブラウザ環境(例えば `window`、`document`など)でデフォルトで利用できるたくさんのものが `lib.d.ts`というファイルでどのように宣言されているかです


注:[DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped)には、最も人気のあるJavaScriptライブラリのほぼ90%のタイプ定義が[たくさんの開発者](https://github.com)から寄せられています/ borisyankov / DefinitelyTyped /グラフ/投稿者)。
Expand Down
2 changes: 1 addition & 1 deletion docs/types/type-assertion.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ function handler(event: Event) {
}
```

#### typescriptが単一のアサーションが不十分と判断する方法
#### TypeScriptが単一のアサーションが不十分と判断する方法
基本的に、`S`が`T`のサブタイプであるか `T`が`S`のサブタイプである場合、`S`から`T`へのアサーションは成功します。これは、タイプアサーションを行う際に特別な安全性を提供するためです。完全に任意の型アサーションは非常に安全でない可能性があります。そして、安全でない状態にするために、あなたは`any`を使用する必要があります。