Hacker News new | past | comments | ask | show | jobs | submit login

> function setVerticalAlignment(color: "top" | "middle" | "bottom

Why is alignment accepting a color? It doesn’t matter how good the type checking is if you are creating the wrong type to begin with.

That aside, congrats on the release!




What's in a name? That which we call a rose

By any other name would smell as sweet.

So Romeo would, were he not Romeo call'd,

Retain that dear perfection which he owes

Without that title.


Looks like it was a typo and they fixed it!


I don’t know anything about that particular function, but “color” has several distinct definitions (colors?), some of which even make sense here.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: