Skip to content

Latest commit

 

History

History
 
 

is-never

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

IsNever<Type> returns true when type Type is never. Otherwise returns false

type IsNeverNever = IsNever<never>;
//   ^? true
type IsAnyNever = IsNever<any>;
//   ^? false
type IsUnknownNever = IsNever<unknown>;
//   ^? false

TS Playground – https://tsplay.dev/weBR1N