What is the output type of the following generic function?
function wrap<T>(value: T): { value: T } {
return { value };
}
T
{ value: T }
void
unknown
This question is part of this quiz :
Generics in TypeScript QuizTypeScript | Generics in TypeScript | Question3