void

如果你根本沒有型別,通常用於不返回任何內容的函式:

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

void 型別只能分配 null 或 undefined。