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

std/_util/assert_type.ts>IsExact

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
type alias IsExact
import { type IsExact } from "https://deno.land/std@0.159.0/_util/assert_type.ts";

Checks if type T exactly matches type U.

definition: TupleMatches<AnyToBrand<T>, AnyToBrand<U>> extends true ? TupleMatches<DeepMakeRequiredForIsExact<T>, DeepMakeRequiredForIsExact<U>> extends true ? true : false : false