Skip to content

Commit 7f9c068

Browse files
committed
docs: fix helper types jsdoc
1 parent 189c6e6 commit 7f9c068

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const kPropagationStopped = Symbol('kPropagationStopped')
4444

4545
export namespace Emitter {
4646
/**
47-
* Infers the listener type for the given event type.
47+
* Returns the listener type for the given event type.
4848
*
4949
* @example
5050
* const emitter = new Emitter<{ getTotalPrice: [Cart, number] }>()
@@ -61,7 +61,7 @@ export namespace Emitter {
6161
>
6262

6363
/**
64-
* Infers the return type of the listener for the given event type.
64+
* Returns the return type of the listener for the given event type.
6565
*
6666
* @example
6767
* const emitter = new Emitter<{ getTotalPrice: [Cart, number] }>()
@@ -75,7 +75,7 @@ export namespace Emitter {
7575
> = EventMap[Type][1]
7676

7777
/**
78-
* Infers an appropriate `Event` type for the given event type.
78+
* Returns an appropriate `Event` type for the given event type.
7979
*
8080
* @example
8181
* const emitter = new Emitter<{ greeting: [string] }>()

0 commit comments

Comments
 (0)