1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-12-16 11:41:50 +00:00

Fixed class handle type (#1345)

* Fixed class handle type

* Fixed import game state
This commit is contained in:
Thomas (DJ1TJOO) 2022-01-20 17:57:04 +01:00 committed by GitHub
parent 839d203737
commit 0718f6cf80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -369,7 +369,7 @@ export class ModInterface {
/** /**
* Registers a new state class, should be a GameState derived class * Registers a new state class, should be a GameState derived class
* @param {typeof GameState} stateClass * @param {typeof import("../core/game_state").GameState} stateClass
*/ */
registerGameState(stateClass) { registerGameState(stateClass) {
this.modLoader.app.stateMgr.register(stateClass); this.modLoader.app.stateMgr.register(stateClass);
@ -470,7 +470,7 @@ export class ModInterface {
/** /**
* *
* @param {typeof Object} classHandle * @param {Class} classHandle
* @param {({ $super, $old }) => any} extender * @param {({ $super, $old }) => any} extender
*/ */
extendClass(classHandle, extender) { extendClass(classHandle, extender) {