logoalt Hacker News

bakugo • today at 10:33 AM • 1 reply • view on HN

Type declarations are still quite limited, though. For example, you can declare that a function returns an array or a string, but not an array of strings.


Replies

lofaszvanitt • today at 10:59 AM

Use a class if you need them.

➕ show 1 reply