From f8fcdb68583871affc369bc3852206dc8fae439a Mon Sep 17 00:00:00 2001 From: Xianwei Pang Date: Sat, 6 May 2023 09:22:10 +0800 Subject: [PATCH] fix(types): make parse options optional (#67) --- lib/front_matter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/front_matter.ts b/lib/front_matter.ts index fbd3bd5..9da7101 100644 --- a/lib/front_matter.ts +++ b/lib/front_matter.ts @@ -32,7 +32,7 @@ function split(str: string) { return { content: str }; } -function parse(str: string, options: yaml.LoadOptions) { +function parse(str: string, options?: yaml.LoadOptions) { if (typeof str !== 'string') throw new TypeError('str is required!'); const splitData = split(str);