Skip to content

Commit

Permalink
fix function return type grammar (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdotink authored Oct 21, 2024
1 parent 813877a commit 74fa282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _pages/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 74fa282

Please sign in to comment.