import { type UnpackPromise } from "https://deno.land/x/tsafe@v1.6.1/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.6.1/mod.ts";
Use case: declare const pr: Promise<string[]>; const x: UnpackPromise; <== x is string[]