From d064e8605f8c711523f2223421813eafdb6dd2b9 Mon Sep 17 00:00:00 2001 From: Jack <85714123+jackdotink@users.noreply.github.com> Date: Thu, 11 Jul 2024 04:39:23 -0500 Subject: [PATCH] Update grammar.md --- _pages/grammar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pages/grammar.md b/_pages/grammar.md index 9ba25c5..f162282 100644 --- a/_pages/grammar.md +++ b/_pages/grammar.md @@ -98,7 +98,7 @@ TypeParams = (Type | TypePack | VariadicTypePack | GenericTypePack) [',' TypePar TypePack = '(' [TypeList] ')' GenericTypePack = NAME '...' VariadicTypePack = '...' Type -ReturnType = Type | TypePack +ReturnType = Type | TypePack | GenericTypePack | VariadicTypePack TableIndexer = '[' Type ']' ':' Type TableProp = NAME ':' Type TablePropOrIndexer = ['read' | 'write'] (TableProp | TableIndexer)