TypeScript part4 (378レス)
TypeScript part4 http://mevius.5ch.net/test/read.cgi/tech/1640872622/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
277: デフォルトの名無しさん [sage] 2023/11/18(土) 23:58:12.41 ID:4VZDo/pg strictNullChecksを有効にするとこのコードがエラーになる const foo: { bar: string } | null = { bar: 'bar' }; if (false) if (foo !== null) console.log(foo.bar); // error TS18047: 'foo' is possibly 'null'. falseを!trueに変えるとエラーにならない if (!true) if (foo !== null) console.log(foo.bar); どういうこっちゃ http://mevius.5ch.net/test/read.cgi/tech/1640872622/277
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.981s*