Skip to content

Commit

Permalink
Renaming IPoolable for TPoolable, see phetsims/chipper#1287
Browse files Browse the repository at this point in the history
  • Loading branch information
AgustinVallejo committed Aug 9, 2022
1 parent 54e6002 commit 9be2a4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/Pool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
static pool = new Pool( MyType );
* and can additionally implement IPoolable to make it clear that the type is pooled
* and can additionally implement TPoolable to make it clear that the type is pooled
*
* @author Jonathan Olson <[email protected]>
*/
Expand Down Expand Up @@ -49,7 +49,7 @@ export type PoolableOptions<T extends Constructor, Params extends IntentionalAny
};
type PoolableInitializer<T extends Constructor, Params extends IntentionalAny[] = ConstructorParameters<T>> = ( ...args: Params ) => InstanceType<T>;

export type IPoolable = {
export type TPoolable = {
// Adds this object into the pool, so that it can be reused elsewhere. Generally when this is done, no other
// references to the object should be held (since they should not be used at all).
freeToPool: () => void;
Expand Down

0 comments on commit 9be2a4f

Please sign in to comment.