import { type RequireAtLeastOne } from "https://deno.land/x/scaffold@0.3.0/src/deps/types.ts";
Create a type that requires at least one of the given keys. The remaining keys are kept as is.
Type Parameters
optional
KeysType extends keyof ObjectType = keyof ObjectTypedefinition: [Key in KeysType]-?: Required<Pick<ObjectType, Key>> & Partial<Pick<ObjectType, Exclude<KeysType, Key>>>[KeysType] & Except<ObjectType, KeysType>