TypeScript cast untuk mengetikkan properti hapus
type A = { foo: 1, bar: 2 }
type B = { foo: 'asdf' }
type C = Pick<A, keyof B>
Dead Dove
type A = { foo: 1, bar: 2 }
type B = { foo: 'asdf' }
type C = Pick<A, keyof B>