Typescript Never Type
The Typescript Never type represents the type that never happens or the values that never occur. The following are such places where we use the never type. The return type of function that never returns (infinite loop or always throws an error). Variables when narrowed by a Type guard that can never be true