Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>Function.Exact

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

Force A to comply with W. A must be a shape of W. In other words, A must extend W and have the same properties - no more, no less.

definition: W extends unknown ? A extends W ? A extends Narrowable ? A : [K in keyof A]: K extends keyof W ? Exact<A[K], W[K]> : never : W : never