Skip to content

NestedStrictOmit

Overview

Omits properties that are nested one level deep.

Example: NestedStrictOmit<NumberControl, 'sliderOptions', 'trackNode' | 'thumbNode'>

@author Sam Reid (PhET Interactive Simulations)

Type NestedStrictOmit

import type { NestedStrictOmit } from 'scenerystack/phet-core';

StrictOmit<T, P> & ( undefined extends T[P] ? Partial<Omit2<T, P, K>> : Omit2<T, P, K> )

Source Code

See the source for NestedStrictOmit.ts in the phet-core repository.