Asserts at compile time that the provided type argument's type resolves to false.
The type to assert is false.
import { AssertFalse, IsNever } from "@std/testing/types";const result = 1 as string | number | null;type doTest = AssertFalse<IsNever<typeof result>>; Copy
import { AssertFalse, IsNever } from "@std/testing/types";const result = 1 as string | number | null;type doTest = AssertFalse<IsNever<typeof result>>;
Asserts at compile time that the provided type argument's type resolves to false.