Update docs/_posts/2022-11-30-luau-recap-november-2022.md

Co-authored-by: Andy Friesen <andy.friesen@gmail.com>
This commit is contained in:
vegorov-rbx 2022-12-01 03:25:29 -08:00 committed by GitHub
parent 3a47529d7c
commit eb12d3fb24
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -27,7 +27,7 @@ function unwrap<T>(r: Result<T>): T?
end
```
For better inference, we updated definition of `Enum.SomeType:GetEnumItems()` to return `{Enum.SomeType}` instead of common `{EnumItem}` and the return type of `next` function now includes the possibility of key being `nil`.
For better inference, we updated the definition of `Enum.SomeType:GetEnumItems()` to return `{Enum.SomeType}` instead of common `{EnumItem}` and the return type of `next` function now includes the possibility of key being `nil`.
Finally, if you use `and` operator on non-boolean values, `boolean` type will no longer be added by the type inference: