Skip to main content
Module

std/collections/mod.ts>ObjectXorKeys

The Deno Standard Library
Go to Latest
type alias ObjectXorKeys
import { type ObjectXorKeys } from "https://deno.land/std@0.223.0/collections/mod.ts";

Object with keys in either T or U but not in both

Type Parameters

T
U
optional
X = Omit<T, keyof U> & Omit<U, keyof T>
optional
Y = [K in keyof X]: X[K]
definition: Y