Apply changes

This commit is contained in:
JohnnyMorganz 2023-05-02 19:59:04 +01:00
parent 077fe6069a
commit 407247df97

View file

@ -68,15 +68,19 @@ SimpleType =
SingletonType = STRING | 'true' | 'false' SingletonType = STRING | 'true' | 'false'
UnionSuffix = {'?'} ['|' SimpleType] UnionSuffix = {'?'} {'|' SimpleType {'?'}}
IntersectionSuffix = ['&' SimpleType] IntersectionSuffix = {'&' SimpleType}
Type = SimpleType {UnionSuffix} | SimpleType {IntersectionSuffix} Type = SimpleType (UnionSuffix | IntersectionSuffix)
GenericTypePackParameter = NAME '...' GenericTypePackParameter = NAME '...'
GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter} GenericTypeList = NAME [',' GenericTypeList] | GenericTypePackParameter {',' GenericTypePackParameter}
GenericTypePackParameterWithDefault = NAME '...' ['=' (TypePack | VariadicTypePack | GenericTypePack)] GenericTypePackParameterWithDefault = NAME '...' '=' (TypePack | VariadicTypePack | GenericTypePack)
GenericTypeListWithDefaults = NAME ['=' Type] [',' GenericTypeListWithDefaults] | GenericTypePackParameterWithDefault {',' GenericTypePackParameterWithDefault} GenericTypeListWithDefaults =
GenericTypeList |
NAME {',' NAME} {',' NAME '=' Type} {',' GenericTypePackParameterWithDefault} |
NAME '=' Type {',' GenericTypePackParameterWithDefault} |
GenericTypePackParameterWithDefault {',' GenericTypePackParameterWithDefault}
TypeList = Type [',' TypeList] | '...' Type TypeList = Type [',' TypeList] | '...' Type
TypeParams = (Type | TypePack | VariadicTypePack | GenericTypePack) [',' TypeParams] TypeParams = (Type | TypePack | VariadicTypePack | GenericTypePack) [',' TypeParams]