Skip to main content
Module

x/conditional_type_checks/mod.ts>Has

Types for testing TypeScript types.
Latest
type alias Has
import { type Has } from "https://deno.land/x/conditional_type_checks@1.0.6/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