This commit is contained in:
JohnnyMorganz 2023-05-02 15:14:02 +01:00
parent 5278daa506
commit 077fe6069a

View file

@ -64,13 +64,13 @@ SimpleType =
'typeof' '(' exp ')' |
TableType |
FunctionType |
'(' SimpleType ')'
'(' Type ')'
SingletonType = STRING | 'true' | 'false'
UnionSuffix = {'?'} ['|' SimpleType]
IntersectionSuffix = ['&' SimpleType]
Type = SimpleType {UnionSuffix | IntersectionSuffix}
Type = SimpleType {UnionSuffix} | SimpleType {IntersectionSuffix}
GenericTypePackParameter = NAME '...'
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}