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

x/deepmergets/src/types/utils.ts>ValueOfKey

Deeply merge 2 or more objects respecting type information.
Go to Latest
type alias ValueOfKey
import { type ValueOfKey } from "https://deno.land/x/deepmergets@v4.0.2/src/types/utils.ts";

Get the value of the given key in the given object.

Type Parameters

T extends Record<PropertyKey, unknown>
K extends PropertyKey
definition: K extends keyof T ? T[K] : never