void effect

void The type used to identify the return value of a method , Indicates that the method does not return a value .

function sayHello():void {
    alert('Hello')
}

void assignment

Usually declare a void Variables of type are of little use , Because this value can only be assigned to undefined and null, as follows :

let a: void = undefined
let b: void = null