From 87e0a180f97cd6bc31909b60228f1148c0289529 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 1 Jul 2022 16:10:26 +0800 Subject: #1260 `type.weakNilCheck` --- doc/pt-br/config.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'doc/pt-br/config.md') diff --git a/doc/pt-br/config.md b/doc/pt-br/config.md index 55604b55..9cbefc2b 100644 --- a/doc/pt-br/config.md +++ b/doc/pt-br/config.md @@ -1460,6 +1460,25 @@ null Allowed to assign the `number` type to the `integer` type. +## type + +```ts +boolean +``` + +## default + +```jsonc +false +``` + +# type.weakNilCheck + +When checking the type of union type, ignore the `nil` in it. + +When this setting is `false`, the `number|nil` type cannot be assigned to the `number` type. It can be with `true`. + + ## type ```ts -- cgit v1.2.3