Closed akuntsch closed 10 hours ago
Please check and confirm your yaml
version, Options
has not been used as a type for a while now.
To be specific, that type only showed up in exactly one prerelease version: 2.0.0-4.
Thanks @eemeli for the very fast response and for pointing me in the right direction!
I'm actually an idiot... my package.json had a resolution pointing yaml
to v1.10.2. Works as expected after removing that resolution.
Describe the bug The type of the
stringify
options parameter is missing properties likelineWidth
as documented at https://eemeli.org/yaml/#tostring-options and also suggested at https://github.com/eemeli/yaml/issues/58#issuecomment-799334277.To Reproduce
shows a TypeScript error with
lineWidth does not exist in type Options
.Expected behaviour All documented option properties are working as expected in TypeScript (I'm not sure if only the type is incorrect or the implementation as well).
Versions (please complete the following information):
yaml
: 2.6.1Additional context I've declared
YAML
as a global variable via a.d.ts
file, but the error also shows up, if I import the yaml module viaimport YAML from 'yaml'
.