Always require data for EventEmitter.fire
Fixes #93875 The data field should not be optional as this breaks strict null typings. With `EventEmitter<void>`, you can still call `.fire()` with no arguments
This commit is contained in:
parent
3bec9a342e
commit
1ed9dcda26
1 changed files with 1 additions and 1 deletions
2
src/vs/vscode.d.ts
vendored
2
src/vs/vscode.d.ts
vendored
|
@ -1490,7 +1490,7 @@ declare module 'vscode' {
|
|||
*
|
||||
* @param data The event object.
|
||||
*/
|
||||
fire(data?: T): void;
|
||||
fire(data: T): void;
|
||||
|
||||
/**
|
||||
* Dispose this object and free resources.
|
||||
|
|
Loading…
Reference in a new issue