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

x/hyogwa/src/utils.ts>Eq

Natural 🌿 effect system that fits TypeScript
Latest
type alias Eq
import { type Eq } from "https://deno.land/x/hyogwa@v0.1.0-rc.4/src/utils.ts";

Test equality of given two types.

If given two types are equal, returns 'true' literal type. If not, returns 'false' literal type.

definition: (<T>() => T extends A ? 1 : 2) extends (<T>() => T extends B ? 1 : 2) ? true : false