Skip to content

Commit 5b2bead

Browse files
authoredMar 13, 2025··
fix: addLevel type definition (#639)
1 parent 5ba3804 commit 5b2bead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5026,7 +5026,7 @@ export interface KAPLAYCtx<
50265026
* @since v2000.0
50275027
* @group Level
50285028
*/
5029-
addLevel(map: string[], opt: LevelOpt): GameObj;
5029+
addLevel(map: string[], opt: LevelOpt): GameObj<PosComp | LevelComp>;
50305030
/**
50315031
* Get data from local storage, if not present can set to a default value.
50325032
*

0 commit comments

Comments
 (0)
Please sign in to comment.