News for hackers. Stuff that matters.
Re:Types as Interfaces by c-hendricks on Tuesday July 23, 2024 @11:17AM (#41046869)
Something like this in TypeScript:

    type Person = Omit<User, 'password'>
    type Invoice = Customer & { invoice: Inv }
    // or
    type Invoice = Inv & { customer: Customer }

There are no comments on this comment yet.