Skip to content

Commit

Permalink
fix(types): make parse options optional (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pcrab authored May 6, 2023
1 parent 315226e commit f8fcdb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/front_matter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f8fcdb6

Please sign in to comment.