Update docs/metatable-type-functions.md

Co-authored-by: ariel <aweiss@hey.com>
This commit is contained in:
ffrostfall 2025-02-04 09:50:50 -05:00 committed by GitHub
parent b88f14bf53
commit d3f66f9fe3
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -44,7 +44,7 @@ type Identity = setmetatable<{
``` ```
When a non-table type (number, boolean) is passed into the type function, it should result in an error. This includes classes. When a non-table type (number, boolean) is passed into the type function, it should result in an error. This includes classes.
If the type is an intersection/union of tables, then the metatable should be applied to every If the type is an intersection or union of tables, then the metatable should be applied to every component type.
### `getmetatable` Type Function ### `getmetatable` Type Function