Skip to content

Commit

Permalink
fix: AreaComp.onClick now returns KEventController (#609)
Browse files Browse the repository at this point in the history
  • Loading branch information
lajbel authored Feb 16, 2025
1 parent 9414177 commit 38ac3af
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
15 changes: 15 additions & 0 deletions ALPHA_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Changelog

All notable changes to the alphas of this project will be documented in this
file.

The format is (mostly) based on
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project
adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4000.0.0-alpha.17] - TBD

### Fixed

- AreaComp.onClick now returns the correct type, KEventController, instead of
void
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### Fixed

- Fixed a bug where args were not being passed to global `trigger()` - @lajbel
- Args were not being passed to global `trigger()` - @lajbel
- AreaComp.onClick now returns the correct type, KEventController, instead of
void - @lajbel

## [3001.0.9] - 2025-01-15

Expand Down
2 changes: 1 addition & 1 deletion src/components/physics/area.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export interface AreaComp extends Comp {
*
* @since v2000.1
*/
onClick(f: () => void, btn?: MouseButton): void;
onClick(f: () => void, btn?: MouseButton): KEventController;
/**
* Register an event runs once when hovered.
*
Expand Down

0 comments on commit 38ac3af

Please sign in to comment.