Replies: 1 comment
-
Yes, this question is very good. Since keywords such as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically I want to check the values assigned to attributes of an index signature schema:
...since there are no means to reference the value of the index signature, I think there is a conceptual or syntactical problem/gap. IMHO and from the fact, that there can only be one or no index signature defined, I would rather skip the customizable naming feature and would use some sort of keyword/builtin e.g. "signature" to expose key and value of the attribute e.g.
signature.key
andsignature.value
wheresignature
itself might beUndefined
in case the index signature of the schema is not defined.@Peefy Honestly, by the way the syntax is defined, there is not much room for a named reference to the signature value - so introducing a keyword or a new syntax e.g.
<name:type>
ortype as name
seems to be an escape...Beta Was this translation helpful? Give feedback.
All reactions