Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 610 Bytes

omit-by-type-exact.md

File metadata and controls

27 lines (20 loc) · 610 Bytes
category alias
Generate Object
OmitByValueExact

OmitByTypeExact

From T remove a set of properties by value matching exact ValueType.

Usage

import type { OmitByTypeExact } from '@utype/core'

type Props = {
  foo: number;
  bar: number | undefined;
  faz: boolean;
}

// Expect: { bar: number | undefined; faz: boolean; }
type OmitByTypeExactProps1 = OmitByTypeExact<Props, number>
// Expect: { foo: number; faz: boolean; }
type OmitByTypeExactProps2 = OmitByTypeExact<Props, number | undefined>