summaryrefslogtreecommitdiff
path: root/doc/pt-br/config.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/pt-br/config.md')
-rw-r--r--doc/pt-br/config.md19
1 files changed, 19 insertions, 0 deletions
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
@@ -1472,6 +1472,25 @@ boolean
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
+boolean
+```
+
+## default
+
+```jsonc
+false
+```
+
# type.weakUnionCheck
Once one subtype of a union type meets the condition, the union type also meets the condition.