Remix.run Logo
auxiliarymoose a day ago

You can use `&` operator to combine types. Works for adding fields, making branded types, etc.

g947o a day ago | parent [-]

which is not the same as "extends".

spoiler a day ago | parent [-]

There's also a slight performance caveat when it comes to interfaces vs intersections (&) to keep in mind: https://github.com/microsoft/Typescript/wiki/Performance#pre...