Skip to content
This repository was archived by the owner on Nov 12, 2024. It is now read-only.

Commit 5e4ffcf

Browse files
authored
Update health() in types.ts (#797)
1 parent c0e9140 commit 5e4ffcf

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
@@ -525,7 +525,7 @@ export interface KaboomCtx {
525525
* })
526526
* ```
527527
*/
528-
health(hp: number): HealthComp,
528+
health(hp: number, maxHP?: number): HealthComp,
529529
/**
530530
* Destroy the game obj after certain amount of time
531531
*

0 commit comments

Comments
 (0)