Skip to main content
Module

x/fun/mod.ts>promise.TypeOf

A collection of algebraic data types, lenses, and schemables based on a light weight higher kinded type implementation. Written for deno.
Go to Latest
type alias promise.TypeOf
import { type promise } from "https://deno.land/x/fun@v2.0.0-alpha.12/mod.ts";
const { TypeOf } = promise;

A type level unwrapor, used to pull the inner type from a Promise.

definition: T extends Promise<infer A> ? A : never