Skip to content

Commit c526b42

Browse files
authored
Merge pull request #38498 from ShuiRuTian/make-atomics.notify-type-correct
make Atomics.notify last parameter optional
2 parents a569603 + df77232 commit c526b42

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lib/es2017.sharedmemory.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@ interface Atomics {
102102
/**
103103
* Wakes up sleeping agents that are waiting on the given index of the array, returning the
104104
* number of agents that were awoken.
105+
* @param typedArray A shared Int32Array.
106+
* @param index The position in the typedArray to wake up on.
107+
* @param count The number of sleeping agents to notify. Defaults to +Infinity.
105108
*/
106-
notify(typedArray: Int32Array, index: number, count: number): number;
109+
notify(typedArray: Int32Array, index: number, count?: number): number;
107110

108111
/**
109112
* Stores the bitwise XOR of a value with the value at the given position in the array,

0 commit comments

Comments
 (0)