Void
suggest changeIf 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
.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents