sisoe24 / Python-Easy-Print

Detected usage of void type outside of generic or return types JS-0333
Anti-pattern
Minor
2 months ago7 months old
void is not valid as a constituent in a union type
10
11export async function executeCommand(
12    statement: string
13): Promise<string | void> {14    const editor = vscode.window.activeTextEditor;
15    if (!editor) {
16        return;
void is not valid as a constituent in a union type
14 *
15 * @returns void if command is called with no active text editor.
16 */
17export async function initPrintPython2(): Promise<void | string> {18  const editor = vscode.window.activeTextEditor;
19  if (!editor) {
20    return;