Skip to content

Commit

Permalink
Adding readonly to static fields, see phetsims/tandem#278
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Dec 1, 2022
1 parent 0717b3d commit ba64751
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/Helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ import IntentionalAny from '../../phet-core/js/types/IntentionalAny.js';
const round = ( n: number, places = 2 ) => Utils.toFixed( n, places );

class PointerAreaType extends EnumerationValue {
public static MOUSE = new PointerAreaType();
public static TOUCH = new PointerAreaType();
public static NONE = new PointerAreaType();
public static readonly MOUSE = new PointerAreaType();
public static readonly TOUCH = new PointerAreaType();
public static readonly NONE = new PointerAreaType();

public static enumeration = new Enumeration( PointerAreaType );
public static readonly enumeration = new Enumeration( PointerAreaType );
}

type HelperCompatibleNode = {
Expand Down

0 comments on commit ba64751

Please sign in to comment.