From a17cfd48d6a07ccdd518d315827082b36c22247f Mon Sep 17 00:00:00 2001 From: Junseo Yoo <59751754+joonyoo181@users.noreply.github.com> Date: Thu, 30 May 2024 13:13:24 -0700 Subject: [PATCH] Update docs/index-type-operator.md Following, Aaron's comment, reworded last sentence of motivation to target broader audience Co-authored-by: aaron --- docs/index-type-operator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index-type-operator.md b/docs/index-type-operator.md index 16c63b1..99c899e 100644 --- a/docs/index-type-operator.md +++ b/docs/index-type-operator.md @@ -29,7 +29,7 @@ type unionType = typeof(bob["age"]) | typeof(bob["name"]) | typeof(bob["alive"]) This is a valid Luau program; however, in order to define the type of `Person["age"]` we had to first declare a variable `bob` and utilize the `typeof` type operator. This is quite cumbersome when developers want to typecheck using the type of `Person["age"]` without having to declare a variable first. Additionally, in order to define the union type of all the properties of `Person`, current Luau requires an explicit list of each property using `typeof`. -The expected outcome of the index type operator is that it will enhance the developing experience and allow the Roblox community to develop better type-checked programs. +The expected outcome of the index type operator is that it will enhance developer experience and allow Luau developers to more easily develop well-typed programs. ## Design