Skip to content

KeysNotMatching

Under Construction

This documentation is auto-generated, and is a work in progress. Please see the source code at https://github.com/phetsims/phet-core/blob/main/js/types/KeysNotMatching.ts for the most up-to-date information.

Overview

Type KeysNotMatching

Finds keys of an object that do not match a specific type, see

For instance, KeysMatching<{ foo: number; x: string; k: number; }, number> will be 'x'

@author Jonathan Olson <jonathan.olson@colorado.edu>

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

{ [K in keyof T]-?: T[K] extends V ? never : K }[keyof T]

Source Code

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