TypeScript | Advanced Types in TypeScript | Question2

Last Updated :
Discuss
Comments

What does the following syntax represent in TypeScript?

TypeScript
let value: unknown = "Hello";
let strValue = value as string;


It defines a mapped type.

It defines a conditional type.

It defines a custom type assertion.

It defines a type guard for string.

Share your thoughts in the comments