import { type UnpackPromise } from "https://deno.land/x/tsafe@v1.2.0-beta.0/mod.ts";
Use case: declare const pr: Promise<string[]>; const x: UnpackPromise; <== x is string[]
definition: T extends PromiseLike<infer U> ? U : never
import { type UnpackPromise } from "https://deno.land/x/tsafe@v1.2.0-beta.0/mod.ts";
Use case: declare const pr: Promise<string[]>; const x: UnpackPromise; <== x is string[]