This commit is contained in:
JohnnyMorganz 2023-05-02 14:43:19 +01:00
parent f3c0fea22e
commit 5278daa506

View file

@ -63,15 +63,14 @@ SimpleType =
NAME ['.' NAME] [ '<' [TypeParams] '>' ] | NAME ['.' NAME] [ '<' [TypeParams] '>' ] |
'typeof' '(' exp ')' | 'typeof' '(' exp ')' |
TableType | TableType |
FunctionType FunctionType |
'(' SimpleType ')'
SingletonType = STRING | 'true' | 'false' SingletonType = STRING | 'true' | 'false'
Type = UnionSuffix = {'?'} ['|' SimpleType]
Type ['?'] | IntersectionSuffix = ['&' SimpleType]
Type ['|' Type] | Type = SimpleType {UnionSuffix | IntersectionSuffix}
Type ['&' Type] |
'(' Type ')'
GenericTypePackParameter = NAME '...' GenericTypePackParameter = NAME '...'
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter} GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}