Skip to main content
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@v3.0.0-beta.6/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