Remove catch-all keys from Node to improve typechecking #142
-
PR: DefinitelyTyped/DefinitelyTyped#54181 A while ago, an index signature was added to This makes it really hard to work with unified in a type safe manner - I wonder what implications there would be for switching back to the old definition of Additionally, in the spec, Edit: just to make it a bit more concrete as to why this is an issue - when I switched to using a version of @Rokt33r @wooorm Pinging you because you were involved in the original discussion. Any thoughts? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Also /cc @ChristianMurphy and @remcohaszing |
Beta Was this translation helpful? Give feedback.
-
Right, some context here, some folks extend node types with custom attributes, which aren't on official @remcohaszing outlined a potential alternative in syntax-tree/xastscript#8, using overrides to extend node types.
It will, in many cases, still error because the indexed value is that said, I am open to removing the index type from |
Beta Was this translation helpful? Give feedback.
Also /cc @ChristianMurphy and @remcohaszing