sisoe24 / Python-Easy-Print

Detected usage of void type outside of generic or return types JS-0333
Anti-pattern
Minor
2 occurrences in this check
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;
void is not valid as a constituent in a union type
 8
 9export async function executeCommand(
10    statement: string
11): Promise<string | void> {12    const editor = vscode.window.activeTextEditor;
13    if (!editor) {
14        return;