Skip to content

Commit

Permalink
Update optionize type parameters, see phetsims/chipper#1360
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Feb 10, 2023
1 parent 3876b13 commit b5df5cd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/PatternStringProperty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,7 @@ export default class PatternStringProperty<Values extends ValuesType> extends De
unknown> {
public constructor( patternProperty: TReadOnlyProperty<string>, values: Values, providedOptions?: PatternStringPropertyOptions<Values> ) {

// @ts-expect-error TODO This should be fixed as part of https://github.com/phetsims/chipper/issues/1360
const options = optionize<PatternStringPropertyOptions<Values>, OptionalSelfOptions<Values>, SuperOptions>()( {
const options = optionize<OptionalSelfOptions<Values> & { maps?: MapsType<Values> }, OptionalSelfOptions<Values>, SuperOptions>()( {
formatNames: [],

decimalPlaces: null,
Expand Down

0 comments on commit b5df5cd

Please sign in to comment.