void— Used for functions that don't return a value (e.g., logging or event handlers).never— Used for functions that never finish normally (they alwaysthrowan error or run an infinite loop).null&undefined— WithstrictNullChecksenabled, you must explicitly allow them with a union likestring | null.
ADVERTISEMENT