Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I raise the bar and say the relational model has it and can be made to work at type level.

    type Person = User DESELECT password
    type Invoice = Customer JOIN Inv


Something like this in TypeScript:

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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: