Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

Unwrap

type Unwrap<T> = T extends string[] ? string : T extends Record<string, infer R> ? R : T;

§Type Parameters

§Type

§
T extends string[] ? string : T extends Record<string, infer R> ? R : T
[src]