SyntaxFix
Write A Post
Hire A Developer
Questions
you can intersect types:
type TypeA = { nameA: string; }; type TypeB = { nameB: string; }; export type TypeC = TypeA & TypeB;
somewhere in you code you can now do:
const some: TypeC = { nameB: 'B', nameA: 'A', };