Skip to content

Commit

Permalink
optimize and sort imports, phetsims/chipper#1462
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Nov 8, 2024
1 parent 57c3ae1 commit b5814a2
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion js/DescriptionRegistry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
*/

import TinyEmitter from '../../axon/js/TinyEmitter.js';
import IntentionalAny from '../../phet-core/js/types/IntentionalAny.js';
import PhetioObject from './PhetioObject.js';
import Tandem from './Tandem.js';
import IntentionalAny from '../../phet-core/js/types/IntentionalAny.js';
import tandemNamespace from './tandemNamespace.js';

type DescriptionEntry = {
Expand Down
2 changes: 1 addition & 1 deletion js/types/DynamicMarkerIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';

const DynamicMarkerIO = new IOType<IntentionalAny, object>( 'DynamicMarkerIO', {
supertype: IOType.ObjectIO,
Expand Down
4 changes: 2 additions & 2 deletions js/types/EnumerationIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@

import EnumerationValue from '../../../phet-core/js/EnumerationValue.js';
import TEnumeration, { EnumerationContainer } from '../../../phet-core/js/TEnumeration.js';
import IOTypeCache from '../IOTypeCache.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import StateSchema from './StateSchema.js';
import tandemNamespace from '../tandemNamespace.js';
import IOTypeCache from '../IOTypeCache.js';

// Cache each parameterized IOType so that it is only created once.
const cache = new IOTypeCache<TEnumeration<EnumerationValue>>();
Expand Down
2 changes: 1 addition & 1 deletion js/types/FunctionIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
* @author Andrew Adare (PhET Interactive Simulations)
*/

import IOTypeCache from '../IOTypeCache.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import IOTypeCache from '../IOTypeCache.js';


// cache each parameterized IOType so that it is only created once
Expand Down
2 changes: 1 addition & 1 deletion js/types/GetSetButtonsIO.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Copyright 2023-2024, University of Colorado Boulder
import IOType from './IOType.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';

/**
* "Marker" style parent class that indicates Studio is supposed to show the Get/Set buttons.
Expand Down
2 changes: 1 addition & 1 deletion js/types/IOTypeTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
* @author Michael Kauzmann (PhET Interactive Simulations)
*/

import IOType from './IOType.js';
import BooleanIO from './BooleanIO.js';
import IOType from './IOType.js';
import NumberIO from './NumberIO.js';
import StringIO from './StringIO.js';

Expand Down
2 changes: 1 addition & 1 deletion js/types/MapIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@

import Validation from '../../../axon/js/Validation.js';
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';
import IOTypeCache from '../IOTypeCache.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import StateSchema from './StateSchema.js';
import IOTypeCache from '../IOTypeCache.js';

// Cache each parameterized IOType so that it is only created once.
const cache = new IOTypeCache<string>();
Expand Down
2 changes: 1 addition & 1 deletion js/types/NullableIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
*/

import Validation from '../../../axon/js/Validation.js';
import IOTypeCache from '../IOTypeCache.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import StateSchema from './StateSchema.js';
import IOTypeCache from '../IOTypeCache.js';

// Cache each parameterized IOType so that it is only created once
const cache = new IOTypeCache();
Expand Down
2 changes: 1 addition & 1 deletion js/types/OrIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

import Validation from '../../../axon/js/Validation.js';
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';
import IOTypeCache from '../IOTypeCache.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import StateSchema from './StateSchema.js';
import IOTypeCache from '../IOTypeCache.js';

// cache each parameterized IOType so that it is only created once
const cache = new IOTypeCache<string>();
Expand Down
6 changes: 3 additions & 3 deletions js/types/ReferenceIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@

import Validation from '../../../axon/js/Validation.js';
import CouldNotYetDeserializeError from '../CouldNotYetDeserializeError.js';
import IOTypeCache from '../IOTypeCache.js';
import Tandem from '../Tandem.js';
import { PhetioID } from '../TandemConstants.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import StringIO from './StringIO.js';
import { PhetioID } from '../TandemConstants.js';
import IOTypeCache from '../IOTypeCache.js';
import Tandem from '../Tandem.js';

// Cache each parameterized ReferenceIO so that it is only created once
const cache = new IOTypeCache();
Expand Down
4 changes: 2 additions & 2 deletions js/types/StateSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
import Validation, { Validator } from '../../../axon/js/Validation.js';
import assertMutuallyExclusiveOptions from '../../../phet-core/js/assertMutuallyExclusiveOptions.js';
import optionize from '../../../phet-core/js/optionize.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';
import { IOTypeName } from '../TandemConstants.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';

/**
* This is the primary functionality of the StateSchema class. An IOType can be provided a composite schema like so:
Expand Down
2 changes: 1 addition & 1 deletion js/types/StringUnionIO.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
* @author Sam Reid (PhET Interactive Simulations)
*/

import IOTypeCache from '../IOTypeCache.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import StateSchema from './StateSchema.js';
import IOTypeCache from '../IOTypeCache.js';

// Cache each parameterized IOType so that it is only created once
const cache = new IOTypeCache<readonly string[]>();
Expand Down
2 changes: 1 addition & 1 deletion js/types/ValueIO.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
// Copyright 2021-2024, University of Colorado Boulder

import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';
import tandemNamespace from '../tandemNamespace.js';
import IOType from './IOType.js';
import StateSchema from './StateSchema.js';
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';

/**
* IOType that uses value semantics for toStateObject/fromStateObject
Expand Down

0 comments on commit b5814a2

Please sign in to comment.