[Feature] Implement in
expression which checks if a given key exists in the provided type
#707
Open
2 of 4 tasks
Is there an existing proposal for this?
This feature does not exist in the latest version
Proposal
Implement
KEY in REF
expression, which checks if a given key is present in the provided reference. The behaviour will be identical to the JavaScriptin
expression.As Kipper is strongly typed, the compiler should be able to recognise that a type has been narrowed down in a specific branch of an if-statement or conditional expression. See #705 for more info on that.
For example:
Exact behaviour / changes you want
in
expression which allows custom key type checks.in
keyword to JavaScript and TypeScript.Related issues
T1 & T2 & T3 ... Tn
#706The text was updated successfully, but these errors were encountered: