-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Renaming IPoolable for TPoolable, see phetsims/chipper#1287
- Loading branch information
1 parent
54e6002
commit 9be2a4f
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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]> | ||
*/ | ||
|
@@ -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; | ||
|