Skip to main content
Module

x/tsafe/res/Equals_example4.ts

🔩 The missing TypeScript utils
Go to Latest
File
/* eslint-disable @typescript-eslint/ban-types */import type { Equals, Not } from "../index.ts";import { assert } from "../assert.ts";
type A = { foo: string };type B = { foo: number };
//@ts-expect-error: A is not equal to Bassert<Equals<A, B>>();
assert<Not<Equals<A, B>>>();