Void type
The void type is used to indicate that a function does not return a value.
const sayHello = (): void => {
console.log('Hello!');
};
The void type is used to indicate that a function does not return a value.
const sayHello = (): void => {
console.log('Hello!');
};