Skip to content

Commit

Permalink
fix(TS2345): Argument of type 'string | Buffer' is not assignable to …
Browse files Browse the repository at this point in the history
…parameter of type 'string'.
  • Loading branch information
dimaslanjaka committed May 18, 2023
1 parent a5aef69 commit 244be2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hexo/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ class Post {
return readFile(src);
}).then(content => {
// Create post
Object.assign(data, yfmParse(content));
Object.assign(data, yfmParse(String(content)));
data.content = data._content;
data._content = undefined;

Expand Down

0 comments on commit 244be2f

Please sign in to comment.