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

std/testing/types.ts>AssertFalse

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias AssertFalse
import { type AssertFalse } from "https://deno.land/std@0.181.0/testing/types.ts";

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

Examples

Example 1

import { AssertFalse, IsNever } from "https://deno.land/std@0.181.0/testing/types.ts";

const result = 1 as string | number | null;

type doTest = AssertFalse<IsNever<typeof result>>;

Type Parameters

T extends false
definition: never