Skip to content
Advertisement

Tag: interface

Typescript custom type

If I have an interface in typescript like so How can I factor out my type for text with the pipes so I can use it multiple times as a type in my program? It seems like it should be simple but I’m not sure what the syntax is For clarity I would like to be able to use it

Advertisement