Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>U.Has

👷 TypeScript's largest type utility library, now on Deno
Latest
type alias U.Has
import { type U } from "https://deno.land/x/ts_toolbelt_unofficial@1.1.0/mod.ts";
const { Has } = U;

Check whether U contains U1

Examples

Example 1

Type Parameters

U extends any
U1 extends any
definition: [U1] extends [U] ? 1 : 0