Replies: 1 comment
-
Yeah, the types are too tight here for access methods; will fix in a patch release. In the meantime, the same methods on the Document itself are more appropriately typed: declare const doc: yaml.Document.Parsed;
doc.get("key")
doc.get(doc.createNode("key")) |
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
-
I'm using version 2.0.1. I know that this document should be a map, and I want to access it's property named "key". I tried doing it two different ways: both using primitive values and creating ndoes myself, as described in documentation, but both result in errors:
How am I supposed to access this map?
Beta Was this translation helpful? Give feedback.
All reactions