facebook / facebook/flow

Remove special case for `invariant`

Aperta
#112 11 commenti 1 reazione 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Rust
Stelle
22.3k
Fork
1.9k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

I'm finding it difficult to add type annotations to my function named `invariant()` because of this little guy: https://github.com/facebook/flow/blob/0f56d1742967b855ab5ee5eaee93d2edfc503e54/src/typing/type_inference_js.ml#L2058

It seems that many of these functions are special cased. I'm curious as to why, because I can't use any functions that share these names anymore.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.