Type void
despite it's unique appliance is in TypeScript
same type as any other - that's why there's no problem with assigning it to any variable, as long as it's type is not defined yet or it's void as well.
const voidFunc = (): void => { return; } const val = voidFunc(); const x: string = val; // Type 'void' is not assignable to type 'string'