Skip to content

Commit 6ed84e9

Browse files
committed
fix: Use proper return types
1 parent df793e2 commit 6ed84e9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ All notable changes to **bUnit** will be documented in this file. The project ad
66

77
## [Unreleased]
88

9+
### Fixed
10+
- Use proper return typed for `InputAsync` and `ChangeAsync` methods.
11+
912
## [2.3.4] - 2025-12-18
1013

1114
### Added

src/bunit/EventDispatchExtensions/InputEventDispatchExtensions.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ public static void Change<T>(this IElement element, T value)
2323
/// </summary>
2424
/// <param name="element">The element to raise the event on.</param>
2525
/// <param name="value">The new value.</param>
26-
public static void ChangeAsync<T>(this IElement element, T value)
27-
=> _ = ChangeAsync(element, CreateFrom(value));
26+
public static Task ChangeAsync<T>(this IElement element, T value)
27+
=> ChangeAsync(element, CreateFrom(value));
2828

2929
/// <summary>
3030
/// Raises the <c>@oninput</c> event on <paramref name="element"/>, passing the provided
@@ -41,8 +41,8 @@ public static void Input<T>(this IElement element, T value)
4141
/// </summary>
4242
/// <param name="element">The element to raise the event on.</param>
4343
/// <param name="value">The new value.</param>
44-
public static void InputAsync<T>(this IElement element, T value)
45-
=> _ = InputAsync(element, CreateFrom(value));
44+
public static Task InputAsync<T>(this IElement element, T value)
45+
=> InputAsync(element, CreateFrom(value));
4646

4747
private static ChangeEventArgs CreateFrom<T>(T value) => new() { Value = FormatValue(value) };
4848

0 commit comments

Comments
 (0)