Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Adding negated and number intrinsic types to TypeScript
(
kaleidawave.github.io
)
2 points
by
kaleidawave
on Nov 13, 2024
|
hide
|
past
|
favorite
|
2 comments
esperent
on Nov 13, 2024
[–]
> param: string & Not<"">
Is this even a type anymore? It's checking against a specific value.
eyelidlessness
on Nov 15, 2024
|
parent
[–]
You can specify specific values in TypeScript types already. And you can achieve the effect of this specific type with Exclude over a type parameter already. This is expanding on concepts already in wide use, in a widely used type system.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Is this even a type anymore? It's checking against a specific value.