Skip to content

TEnumeration

Overview

Type TEnumeration

Abstraction used by EnumerationProperty, and implemented by Enumeration.ts

@author Sam Reid (PhET Interactive Simulations)

import type { TEnumeration } from 'scenerystack/phet-core';
  • keys: string[]
    The possible keys for the enumeration
  • values: T[]
    The values for the enumeration
  • phetioDocumentation?: string
    Optional PhET-iO documentation

Source Code

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