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

std/testing/types.ts>Has

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias Has
import { type Has } from "https://deno.land/std@0.204.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