Skip to content

Commit

Permalink
Add TMixin type assertion for the export statement, see phetsims/task…
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Apr 28, 2024
1 parent 7552d65 commit 79559bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/nodes/Leaf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { Node, scenery } from '../imports.js';
import memoize from '../../../phet-core/js/memoize.js';
import IntentionalAny from '../../../phet-core/js/types/IntentionalAny.js';
import Constructor from '../../../phet-core/js/types/Constructor.js';
import TMixin from '../../../phet-core/js/types/TMixin.js';

const Leaf = memoize( <SuperType extends Constructor<Node>>( type: SuperType ) => {

Expand All @@ -30,4 +31,4 @@ const Leaf = memoize( <SuperType extends Constructor<Node>>( type: SuperType ) =

scenery.register( 'Leaf', Leaf );

export default Leaf;
export default Leaf as TMixin<Node>;

0 comments on commit 79559bd

Please sign in to comment.