TypeScript Void


Example

If you have no type at all, commonly used for functions that do not return anything:

function log(): void {
    console.log('I return nothing');
}

void types Can only be assigned null or undefined.