💻
What problem are you trying to solve?
TypeScript 4.7 Beta ships with in and out modifiers for type parameters on type declarations.
type Getter<out T> = () => T;
type Setter<in T> = (value: T) => void;
interface State<in out T> {
get: () => T;
set: (value: T) => void;
}
TypeScript developers using Babel will need to support this syntax.
These in and out modifiers can only be placed on type parameter declarations for
It is possible to have in, out, and in out. Duplicates are not allowed, and in must always come before out.
Describe the solution you'd like
For the next minor version of Babel, we may want to implement this feature.
Describe alternatives you've considered
There are alternative compilers, but that would not be ideal for Babel users.
Documentation, Adoption, Migration Strategy
No response
💻
What problem are you trying to solve?
TypeScript 4.7 Beta ships with
inandoutmodifiers for type parameters on type declarations.TypeScript developers using Babel will need to support this syntax.
These
inandoutmodifiers can only be placed on type parameter declarations fortypealiasesinterfacedeclarationsclassdeclarationspossiblyclassexpressionsIt is possible to have
in,out, andin out. Duplicates are not allowed, andinmust always come beforeout.Describe the solution you'd like
For the next minor version of Babel, we may want to implement this feature.
Describe alternatives you've considered
There are alternative compilers, but that would not be ideal for Babel users.
Documentation, Adoption, Migration Strategy
No response