Skip to main content
Module

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

Deeply merge 2 or more objects respecting type information.
Latest
type alias KeyIsOptional
import { type KeyIsOptional } from "https://deno.land/x/deepmergets@v7.1.0/src/types/utils.ts";

Check if a key is optional in the given object.

Type Parameters

K extends PropertyKey
O extends [Key in K]?: unknown
definition: O extends [Key in K]: unknown ? false : true