import '../../globals.js';
// Copyright 2022-2024, University of Colorado Boulder
/**
 * In TypeScript, it is common to use a string literal union as an enumeration.  This type automatically specifies
 * validValues and the phetioType for convenience.
 *
 * @author Sam Reid (PhET Interactive Simulations)
 */
import optionize from '../../phet-core/js/optionize.js';
import StringUnionIO from '../../tandem/js/types/StringUnionIO.js';
import axon from './axon.js';
import Property from './Property.js';
export default class StringUnionProperty extends Property {
    constructor(value, providedOptions) {
        const options = optionize()({
            phetioValueType: StringUnionIO(providedOptions.validValues)
        }, providedOptions);
        super(value, options);
    }
}
axon.register('StringUnionProperty', StringUnionProperty);
//# sourceMappingURL=StringUnionProperty.js.map