diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-25 04:02:25 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-25 04:02:25 +0800 |
commit | 7b809496a5a4be6a182d715b264493cb39c98674 (patch) | |
tree | c11adeb7dbaa012b0efba10c5b13c2015d96e541 /doc | |
parent | eff02b11a8186ef25f35aa34be2e59470fd69cb3 (diff) | |
download | lua-language-server-7b809496a5a4be6a182d715b264493cb39c98674.zip |
update doc
Diffstat (limited to 'doc')
-rw-r--r-- | doc/en-us/config.md | 35 | ||||
-rw-r--r-- | doc/pt-br/config.md | 35 | ||||
-rw-r--r-- | doc/zh-cn/config.md | 35 | ||||
-rw-r--r-- | doc/zh-tw/config.md | 35 |
4 files changed, 140 insertions, 0 deletions
diff --git a/doc/en-us/config.md b/doc/en-us/config.md index 11c51f05..d9d04b39 100644 --- a/doc/en-us/config.md +++ b/doc/en-us/config.md @@ -1418,6 +1418,41 @@ boolean | null null ``` +# type.castNumberToInteger + +Allowed to assign the `number` type to the `integer` type. + +## 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. + +When this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`. + + +## type + +```ts +boolean +``` + +## default + +```jsonc +false +``` + # window.progressBar Show progress bar in status bar. diff --git a/doc/pt-br/config.md b/doc/pt-br/config.md index af6cfba0..68efabb3 100644 --- a/doc/pt-br/config.md +++ b/doc/pt-br/config.md @@ -1418,6 +1418,41 @@ boolean | null null ``` +# type.castNumberToInteger + +Allowed to assign the `number` type to the `integer` type. + +## 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. + +When this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`. + + +## type + +```ts +boolean +``` + +## default + +```jsonc +false +``` + # window.progressBar Show progress bar in status bar. diff --git a/doc/zh-cn/config.md b/doc/zh-cn/config.md index ac819e07..76e56370 100644 --- a/doc/zh-cn/config.md +++ b/doc/zh-cn/config.md @@ -1417,6 +1417,41 @@ boolean | null null ``` +# type.castNumberToInteger + +允许将 `number` 类型赋给 `integer` 类型。 + +## type + +```ts +boolean +``` + +## default + +```jsonc +false +``` + +# type.weakUnionCheck + +联合类型中只要有一个子类型满足条件,则联合类型也满足条件。 + +此设置为 `false` 时,`number|boolean` 类型无法赋给 `number` 类型;为 `true` 时则可以。 + + +## type + +```ts +boolean +``` + +## default + +```jsonc +false +``` + # window.progressBar 在状态栏显示进度条。 diff --git a/doc/zh-tw/config.md b/doc/zh-tw/config.md index 57b28cac..8e1db142 100644 --- a/doc/zh-tw/config.md +++ b/doc/zh-tw/config.md @@ -1417,6 +1417,41 @@ boolean | null null ``` +# type.castNumberToInteger + +Allowed to assign the `number` type to the `integer` type. + +## 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. + +When this setting is `false`, the `number|boolean` type cannot be assigned to the `number` type. It can be with `true`. + + +## type + +```ts +boolean +``` + +## default + +```jsonc +false +``` + # window.progressBar 在狀態欄顯示進度條。 |