Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

typescript cast to type remove properties

type A = { foo: 1, bar: 2 }
type B = { foo: 'asdf' }
type C = Pick<A, keyof B>
Source by www.reddit.com #
 
PREVIOUS NEXT
Tagged: #typescript #cast #type #remove #properties
ADD COMMENT
Topic
Name
9+2 =