Question from the Typescript - Overview test

Typescript: What is the type of result?

Easy

Given the following TypeScript code, what is the type of result?

type SomeType = { a: number; b: string; c: boolean };
type OtherType = Pick<SomeType, 'a' | 'b'>;
const result: OtherType = { a: 42, b: 'hello' };
Author: Vincent CotroStatus: PublishedQuestion passed 833 times
Edit
5
Community EvaluationsNo one has reviewed this question yet, be the first!