Skip to main content
Module

std/testing/types.ts>Has

Deno standard library
Go to Latest
type alias Has
import { type Has } from "https://deno.land/std@0.202.0/testing/types.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