You can also do this Array<Model>
-
-
-
I usually just avoid shorthand for this reason
End of conversation
New conversation -
-
-
yes. on the other hand, having to switch between Array<number> and number[] depending on whether I'm using JSX or not is more annoying IMO
-
I don’t think you do, right? (To my knowledge) The only time it’s ambiguous is with type assertions (so just always use “as”) and sometimes in function generics (so you have to do function<T extends any> instead of just function<T>)
End of conversation
New conversation -
-
-
It bothers me for the same reason, which is why I tend to prefer Array<type>.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
golang says hi: []string
-
I'm jealous. That makes way more sense.
End of conversation
New conversation -
-
-
Yeah not a big fan, it can also get lost in the syntax with more complex type signatures
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Take a look at the "array-simple" option:https://www.github.com/typescript-eslint/typescript-eslint/tree/master/packages%2Feslint-plugin%2Fdocs%2Frules%2Farray-type.md …
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
It doesn’t bother me. It’s like being upset that you don’t know a sentence is a question because the ? is at the end.
-
Although some languages do ¿ asdfasd ?
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
CSS Modules co-creator / 