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

x/tsafe/Equals.ts

🔩 The missing TypeScript utils
Go to Latest
File
/* eslint-disable @typescript-eslint/no-explicit-any */import type { Unite } from "./tools/Unite.ts";import type { StrictEquals } from "./tools/StrictEquals.ts";
/** https://docs.tsafe.dev/main/equals */export type Equals<A1, A2> = StrictEquals<Unite<A1>, Unite<A2>>;
// Credit https://stackoverflow.com/a/52473108/3570903