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

std/testing/types.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.201.0/testing/types.ts";

Functions

Asserts at compile time that the provided type argument's type resolves to the expected boolean literal type.

Type Aliases

Asserts at compile time that the provided type argument's type resolves to the expected boolean literal type.

Asserts at compile time that the provided type argument's type resolves to false.

Asserts at compile time that the provided type argument's type resolves to true.

Checks if type T has the specified type U.

Checks if type T is the any type.

Checks if type T exactly matches type U.

Checks if type T is the never type.

Checks if type T is possibly null or undefined.

Checks if type T is the unknown type.

Checks if type T does not have the specified type U.