sisoe24 / Nuke-Tools

Detected usage of void type outside of generic or return types JS-0333
Anti-pattern
Minor
5 months ago5 months old
void is not valid as a constituent in a union type
183export class NukeNodesInspectorProvider implements vscode.TreeDataProvider<Dependency> {
184    private _onDidChangeTreeData: vscode.EventEmitter<Dependency | undefined | null | void> =
185        new vscode.EventEmitter<Dependency | undefined | null | void>();
186    readonly onDidChangeTreeData: vscode.Event<Dependency | undefined | null | void> =187        this._onDidChangeTreeData.event;
188
189    /**
void is not valid as a constituent in a union type
182
183export class NukeNodesInspectorProvider implements vscode.TreeDataProvider<Dependency> {
184    private _onDidChangeTreeData: vscode.EventEmitter<Dependency | undefined | null | void> =
185        new vscode.EventEmitter<Dependency | undefined | null | void>();186    readonly onDidChangeTreeData: vscode.Event<Dependency | undefined | null | void> =
187        this._onDidChangeTreeData.event;
188
void is not valid as a constituent in a union type
181}
182
183export class NukeNodesInspectorProvider implements vscode.TreeDataProvider<Dependency> {
184    private _onDidChangeTreeData: vscode.EventEmitter<Dependency | undefined | null | void> =185        new vscode.EventEmitter<Dependency | undefined | null | void>();
186    readonly onDidChangeTreeData: vscode.Event<Dependency | undefined | null | void> =
187        this._onDidChangeTreeData.event;