Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/windmill/node_modules/tsafe/UnpackPromise.d.ts>UnpackPromise

Windmill deno client (separated from the main repo because most of the code is auto-generated from the openapi and not worth committing)
Latest
type alias UnpackPromise
import { type UnpackPromise } from "https://deno.land/x/windmill@v1.426.1/node_modules/tsafe/UnpackPromise.d.ts";

Use case: declare const pr: Promise<string[]>; const x: UnpackPromise; <== x is string[]

Type Parameters

T extends
| PromiseLike<unknown>
| undefined
| null
| false
| ""
definition: T extends PromiseLike<infer U> ? U : never