Skip to main content
type alias Has
import { type Has } from "https://deno.land/x/conditional_type_checks@1.0.5/mod.ts";

Checks if type T has the specified type U.

definition: IsAny<T> extends true ? true : IsAny<U> extends true ? false : Extract<T, U> extends never ? false : true