You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Typeguard not working if checked against ExcludeΒ #49118
The type Exclude<number, 0> is exactly the same type as number. It does not do what you think it does. There is no way to represent a type "any number, except 0" in TypeScript. This would first require #29317.
Activity
MartinJohns commentedon May 15, 2022
The type
Exclude<number, 0>is exactly the same type asnumber. It does not do what you think it does. There is no way to represent a type "any number, except 0" in TypeScript. This would first require #29317.qwelias commentedon May 15, 2022
thanks, tho it's been open for 3+yrs now...
MartinJohns commentedon May 16, 2022
It's a fairly difficult issue to solve.