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