From 74fa282054d8e778044adf0783917d460eabbb80 Mon Sep 17 00:00:00 2001 From: Jack <85714123+jackdotink@users.noreply.github.com> Date: Mon, 21 Oct 2024 17:24:55 -0500 Subject: [PATCH] fix function return type grammar (#22) --- _pages/grammar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pages/grammar.md b/_pages/grammar.md index 6fd69fc..37bb1ba 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)