Skip to main content
Module

x/ts_toolbelt_unofficial/mod.ts>O.AtLeast

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

Make that at least one of the keys K are required in O at a time.

Examples

Example 1

Type Parameters

O extends object
optional
K extends Key = Keys<O>
definition: O extends unknown ? _AtLeast<O, K> : never