Open sinedied opened 4 years ago
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.
When trying to pass
js-yaml
options tostringify
method, there is a type error:Since any kind of options (depending of the engine) can be passed here, the
GrayMatterOption
type is missing something here (or maybe I missed something?).Thanks for helping.