abiA
Denoβ€’3y agoβ€’
8 replies
abi

Type alias with inherited type parameter constraints

Is there any way to do this? I want SVLTN to just be a short-name alias for SomeVeryLongTypeName, and I want it to have the same parameter types, but I don't want to have to specify all of them explicitly.

type SomeVeryLongTypeName<A extends ..., B extends ..., ...> = ...
type SVLTN<A extends ..., B extends ..., ...> = SomeVeryLongTypeName<A, B, ...>


What I would like more is:

type SVLTN = SomeVeryLongTypeName<???>


Anyone?
Was this page helpful?