RequiredOption¶
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/RequiredOption.ts for the most up-to-date information.
Overview¶
Allows grabbing the type of a required option out of a type. For example if we have
type SelfOptions = { something?: number | string | Property<Ray2>; };
This can be used in a field of the type as:
something: RequiredOption<SelfOptions, 'something'>;
@author Jonathan Olson <jonathan.olson@colorado.edu>
Type RequiredOption¶
NotUndefined<Options[ Name ]>
Source Code¶
See the source for RequiredOption.ts in the phet-core repository.