Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.3/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