The never Type
When a variable is narrowed to a type that cannot contain any values, the TypeScript compiler will infer that the variable must be of the never
type. This is because The never Type represents a value that can never be produced.
When a variable is narrowed to a type that cannot contain any values, the TypeScript compiler will infer that the variable must be of the never
type. This is because The never Type represents a value that can never be produced.