Skip to main content
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)
Go to Latest
type alias UnpackPromise
import { type UnpackPromise } from "https://deno.land/x/windmill@v1.394.3/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