Skip to main content
Module

x/froebel/types.ts

A strictly typed utility library.
Go to Latest
import * as froebel from "https://deno.land/x/froebel@v0.22.0/types.ts";

Type Aliases

Equivalent to A extends B ? true : false

Returns A if T is true, B if false, and A | B otherwise.

Create a union containing the integers 0..T

Parse T into number if T is a positive base 10 integer.

Any list of the n-first elements of T.

If T is promise then the type it resolves to, otherwise T.

Return a tuple containing the N first elements from T. If T is a tuple its labels will be preserved unless it contains variadic elements.

Same as Take but doesn't validate that N is a valid length.