From 43fed897c1ec56aeb66f895d39b31452ac0bdba4 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Mon, 2 Nov 2020 12:06:08 -0800 Subject: [PATCH] Update typecheck.md --- docs/typecheck.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/typecheck.md b/docs/typecheck.md index 5a3d23ce..c636909a 100644 --- a/docs/typecheck.md +++ b/docs/typecheck.md @@ -313,7 +313,9 @@ Roblox supports a rich set of classes and data types, [documented here](https:// When one type inherits from another type, the type checker models this relationship and allows to cast a subclass to the parent class implicitly, so you can pass a `Part` to a function that expects an `Instance`. -Additionally, we can automatically deduce what calls like `Instance.new` and `game:GetService` are supposed to return: +All enums are also available to use by their name as part of the `Enum` type library, e.g. `local m: Enum.Material = part.Material`. + +Finally, we can automatically deduce what calls like `Instance.new` and `game:GetService` are supposed to return: ```lua local part = Instance.new("Part")