Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

IsEqual

Checks whether T1 can be exactly (mutually) assigned to T2

type IsEqual<T1, T2> = T1 extends T2 ? (<G>() => G extends T1 ? 1 : 2) extends <G>() => G extends T2 ? 1 : 2 ? true : false : false;

§Type Parameters

§Type

§
T1 extends T2 ? (<G>() => G extends T1 ? 1 : 2) extends <G>() => G extends T2 ? 1 : 2 ? true : false : false
[src]