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

x/tsafe/index.ts>Extends

🔩 The missing TypeScript utils
Go to Latest
type alias Extends
import { type Extends } from "https://deno.land/x/tsafe@v1.6.1/index.ts";
definition: StrictEquals<A1, never> extends true ? true : StrictEquals<A2, never> extends true ? false : StrictEquals<A2, any> extends true ? true : StrictEquals<A2, unknown> extends true ? true : StrictEquals<A1, any> extends true ? false : StrictEquals<A1, unknown> extends true ? false : A1 extends A2 ? true : false