From 6295dc7a9a4a471557085ab9fa5ad3d8bf88639c Mon Sep 17 00:00:00 2001 From: Ayato Hayashi Date: Thu, 16 Mar 2023 00:31:55 +0900 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20difnite=20assignment=20assertion?= =?UTF-8?q?=E3=82=92=E6=98=8E=E7=A2=BA=E3=81=AA=E5=89=B2=E3=82=8A=E5=BD=93?= =?UTF-8?q?=E3=81=A6=E3=82=A2=E3=82=B5=E3=83=BC=E3=82=B7=E3=83=A7=E3=83=B3?= =?UTF-8?q?=E3=81=A8=E8=A8=B3=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/options/strictNullChecks.md | 4 ++-- intro/strictnullchecks.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/options/strictNullChecks.md b/docs/options/strictNullChecks.md index 3ca9ae30b..1e3eef22e 100644 --- a/docs/options/strictNullChecks.md +++ b/docs/options/strictNullChecks.md @@ -65,7 +65,7 @@ function processEntity(e?: Entity) { > これは単なるアサーションであり、型アサーションと同じように、あなたは値がnullでないことを確認する責任があることに注意してください。非nullアサーションは、本質的にはコンパイラに"それはnullでないことが分かっているから、nullではないものとして使います"と伝えるものです。 -### Definite Assignment Assertion演算子(Definite Assignment Assertion Operator) +### 明確な割り当てアサーション演算子(Definite Assignment Assertion Operator) TypeScriptは、初期化されていないクラスのプロパティについてもエラーを出します。 @@ -80,7 +80,7 @@ class C { } ``` -プロパティ名に後置された完全な代入アサーションを使用して、コンストラクタ以外の場所で初期化することをTypeScriptに通知することができます。 +プロパティ名に後置された明確な割り当てアサーションを使用して、コンストラクタ以外の場所で初期化することをTypeScriptに通知することができます。 ```ts class C { diff --git a/intro/strictnullchecks.md b/intro/strictnullchecks.md index 9b8b13571..aa1a7aea0 100644 --- a/intro/strictnullchecks.md +++ b/intro/strictnullchecks.md @@ -65,7 +65,7 @@ function processEntity(e?: Entity) { > これは単なるアサーションであり、型アサーションと同じように、あなたは値がnullでないことを確認する責任があることに注意してください。非nullアサーションは、本質的にはコンパイラに"それはnullでないことが分かっているから、nullではないものとして使います"と伝えるものです。 -### Definite Assignment Assertion演算子\(Definite Assignment Assertion Operator\) +### 明確な割り当てアサーション演算子\(Definite Assignment Assertion Operator\) TypeScriptは、初期化されていないクラスのプロパティについてもエラーを出します。 @@ -80,7 +80,7 @@ class C { } ``` -プロパティ名に後置された完全な代入アサーションを使用して、コンストラクタ以外の場所で初期化することをTypeScriptに通知することができます。 +プロパティ名に後置された明確な割り当てアサーションを使用して、コンストラクタ以外の場所で初期化することをTypeScriptに通知することができます。 ```typescript class C { From d64d42e31d85ff65dca35806c98d4b40b6bbb60b Mon Sep 17 00:00:00 2001 From: Ayato Hayashi Date: Thu, 16 Mar 2023 00:33:33 +0900 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E8=87=AA=E7=84=B6=E3=81=AA=E6=97=A5?= =?UTF-8?q?=E6=9C=AC=E8=AA=9E=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/options/strictNullChecks.md | 2 +- intro/strictnullchecks.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/options/strictNullChecks.md b/docs/options/strictNullChecks.md index 1e3eef22e..5f8f756c1 100644 --- a/docs/options/strictNullChecks.md +++ b/docs/options/strictNullChecks.md @@ -80,7 +80,7 @@ class C { } ``` -プロパティ名に後置された明確な割り当てアサーションを使用して、コンストラクタ以外の場所で初期化することをTypeScriptに通知することができます。 +プロパティ名の末尾に明確な割り当てアサーションを使用することで、コンストラクタ以外の場所で初期化していることをTypeScriptに伝えることができます。 ```ts class C { diff --git a/intro/strictnullchecks.md b/intro/strictnullchecks.md index aa1a7aea0..e30997c13 100644 --- a/intro/strictnullchecks.md +++ b/intro/strictnullchecks.md @@ -80,7 +80,7 @@ class C { } ``` -プロパティ名に後置された明確な割り当てアサーションを使用して、コンストラクタ以外の場所で初期化することをTypeScriptに通知することができます。 +プロパティ名の末尾に明確な割り当てアサーションを使用することで、コンストラクタ以外の場所で初期化していることをTypeScriptに伝えることができます。 ```typescript class C {