facebook / facebook/flow

Remove special case for `invariant`

Offen
#112 11 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Rust
Sterne
22.3k
Forks
1.9k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

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.

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.