is-odd icon indicating copy to clipboard operation
is-odd copied to clipboard

No Typescript definitions

Open dcollien opened this issue 4 years ago • 3 comments

Can I suggest also: type oddNumber = twoMilOdd | fourMilOdd | ... etc. Where: type twoMilOdd = 1 | 3 | 5 | ... etc. So isOdd can be a type guard:

function isOdd(value: number): value is oddNumber { ... }

dcollien avatar Oct 26 '21 15:10 dcollien

This is what this project has needed all along!

samollari avatar Oct 26 '21 18:10 samollari

Also no factories or adapters.

dogweather avatar Apr 05 '24 22:04 dogweather

Nice! we can get compile-time checks!

Rudxain avatar Apr 06 '24 09:04 Rudxain