diff --git a/js/DerivedProperty.ts b/js/DerivedProperty.ts index d5225a0..2c57c27 100644 --- a/js/DerivedProperty.ts +++ b/js/DerivedProperty.ts @@ -23,8 +23,8 @@ import IntentionalAny from '../../phet-core/js/types/IntentionalAny.js'; const DERIVED_PROPERTY_IO_PREFIX = 'DerivedPropertyIO'; type DerivedPropertyDefinedOptions = { - tandem: Tandem, - phetioType?: IOType + tandem: Tandem; + phetioType?: IOType; }; // Maps tuples/arrays from T => IReadOnlyProperty diff --git a/js/DynamicProperty.ts b/js/DynamicProperty.ts index 1fcbb0f..b7261c5 100644 --- a/js/DynamicProperty.ts +++ b/js/DynamicProperty.ts @@ -114,7 +114,7 @@ type SelfOptions = { // If valuePropertyProperty.value === null, this dynamicProperty will act instead like // derive( valuePropertyProperty.value ) === new Property( defaultValue ). Note that if a custom map function is // provided, it will be applied to this defaultValue to determine our Property's value. - defaultValue?: InnerValueType, + defaultValue?: InnerValueType; // Maps a non-null valuePropertyProperty.value into the Property to be used. See top-level documentation for usage. // If it's a string, it will grab that named property out (e.g. it's like passing u => u[ derive ]) diff --git a/js/EmitterTests.ts b/js/EmitterTests.ts index adfd0e8..6fbcb98 100644 --- a/js/EmitterTests.ts +++ b/js/EmitterTests.ts @@ -91,7 +91,7 @@ QUnit.test( 'Emitter Basics', assert => { } ); QUnit.test( 'Emitter Tricks', assert => { - const entries: Array<{ listener: string, arg: string }> = []; + const entries: Array<{ listener: string; arg: string }> = []; const emitter = new Emitter<[ string ]>( { parameters: [ { valueType: 'string' } ] diff --git a/js/EnumerationProperty.ts b/js/EnumerationProperty.ts index bcf0e99..b9e56fa 100644 --- a/js/EnumerationProperty.ts +++ b/js/EnumerationProperty.ts @@ -16,7 +16,7 @@ type SelfOptions = { // By default, this will be taken from the initial value, but if subtyping enumerations, you must provide this // manually to make sure it is set to the correct, subtype value, see https://github.com/phetsims/phet-core/issues/102 - enumeration?: Enumeration + enumeration?: Enumeration; }; export type EnumerationPropertyOptions = SelfOptions & Omit, 'phetioType'>; diff --git a/js/Property.ts b/js/Property.ts index 705be4b..4f96695 100644 --- a/js/Property.ts +++ b/js/Property.ts @@ -37,8 +37,8 @@ let globalId = 0; // autoincremented for unique IDs type PropertyDefinedOptions = { tandem: Tandem; useDeepEquality: boolean; - units: string | null, - reentrant: boolean + units: string | null; + reentrant: boolean; }; // Options used in the contstructor @@ -51,7 +51,7 @@ export type PropertyOptions = Partial & { validValues?: readonly T[]; valueType?: any; arrayElementType?: any; - isValidValue?: any + isValidValue?: any; } & PhetioObjectOptions; // a Property (can't be a TinyProperty) with all of the value-mutation removed. diff --git a/js/TinyEmitter.ts b/js/TinyEmitter.ts index a032c29..9c00b3d 100644 --- a/js/TinyEmitter.ts +++ b/js/TinyEmitter.ts @@ -13,8 +13,8 @@ import axon from './axon.js'; const shuffleListeners = _.hasIn( window, 'phet.chipper.queryParameters' ) && phet.chipper.queryParameters.shuffleListeners; type EmitContext = { - index: number, - listenerArray?: Function[] + index: number; + listenerArray?: Function[]; }; type Listener = ( ...args: T ) => void; diff --git a/js/TinyForwardingProperty.ts b/js/TinyForwardingProperty.ts index 8c580d5..13c9222 100644 --- a/js/TinyForwardingProperty.ts +++ b/js/TinyForwardingProperty.ts @@ -17,8 +17,8 @@ import IProperty from './IProperty.js'; import { PropertyLazyLinkListener } from './IReadOnlyProperty.js'; type NodeLike = { - updateLinkedElementForProperty: ( tandemName: string, oldProperty?: IProperty | null, newProperty?: IProperty | null ) => void, - isPhetioInstrumented: () => boolean + updateLinkedElementForProperty: ( tandemName: string, oldProperty?: IProperty | null, newProperty?: IProperty | null ) => void; + isPhetioInstrumented: () => boolean; }; export default class TinyForwardingProperty extends TinyProperty { diff --git a/js/TinyProperty.ts b/js/TinyProperty.ts index 547a73a..0ea796f 100644 --- a/js/TinyProperty.ts +++ b/js/TinyProperty.ts @@ -16,7 +16,7 @@ import IProperty from './IProperty.js'; import { PropertyLinkListener, PropertyLazyLinkListener, PropertyListener } from './IReadOnlyProperty.js'; type ComparableObject = { - equals: ( a: any ) => boolean + equals: ( a: any ) => boolean; }; export type TinyPropertyEmitterParameters = [ T, T | null, IProperty ]; export type TinyPropertyOnBeforeNotify = ( ...args: TinyPropertyEmitterParameters ) => void; diff --git a/js/createObservableArray.ts b/js/createObservableArray.ts index be6b9b0..dbd420e 100644 --- a/js/createObservableArray.ts +++ b/js/createObservableArray.ts @@ -49,7 +49,7 @@ type ObservableArray = { removeAll: ( elements: T[] ) => void; clear: () => void; count: ( predicate: Predicate ) => number; - find: ( predicate: Predicate, fromIndex?: number ) => T | undefined, + find: ( predicate: Predicate, fromIndex?: number ) => T | undefined; shuffle: ( random: FakeRandom ) => void; getArrayCopy: () => T[]; dispose: () => void;