Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions _pages/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ VariadicTypePack = '...' Type
ReturnType = Type | TypePack
TableIndexer = '[' Type ']' ':' Type
TableProp = NAME ':' Type
TablePropOrIndexer = ['read' | 'write'] (TableProp | TableIndexer)
PropList = TablePropOrIndexer {fieldsep TablePropOrIndexer} [fieldsep]
PropList = TableProp [fieldsep PropList] | TableIndexer {fieldsep TableProp}
TableType = '{' Type '}' | '{' [PropList] '}'
FunctionType = ['<' GenericTypeList '>'] '(' [BoundTypeList] ')' '->' ReturnType
```