Add documentation for default types

This commit is contained in:
JohnnyMorganz 2022-01-17 13:36:12 +00:00
parent df5ba24ef9
commit 4bf601ecc5

View file

@ -73,7 +73,8 @@ Type =
SimpleType ['|' Type] |
SimpleType ['&' Type]
GenericTypeList = NAME [',' GenericTypeList] | NAME '...' {',' NAME '...'}
GenericTypePack = NAME '...' ['=' '(' TypeList ')']
GenericTypeList = NAME ['=' Type] [',' GenericTypeList] | GenericTypePack {',' GenericTypePack}
TypeList = Type [',' TypeList] | '...' Type
ReturnType = Type | '(' TypeList ')'
TableIndexer = '[' Type ']' ':' Type