Typings issue when passing js-yaml options #107
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
When trying to pass
js-yamloptions tostringifymethod, there is a type error:Since any kind of options (depending of the engine) can be passed here, the
GrayMatterOptiontype is missing something here (or maybe I missed something?).Thanks for helping.
I have the same issue, passing
{skipInvalid: true}as an option is passed to js-yaml, but the typescript types fail.Workaround seems to be casting the options to any like
matter.stringify(a, b, {skipInvalid: true} as any), but if the types also merged in the js-yaml types that would be awesome.