Skip to content

Void type

The void type is used to indicate that a function does not return a value.

const sayHello = (): void => {
console.log('Hello!');
};