Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.6/mod.ts";
const { TypeOf } = promise;

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

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