Skip to content

Commit b077b9f

Browse files
committed
fix: typescript errors
1 parent c377d62 commit b077b9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/app/lib/data.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const customer =
99

1010
function saveJson(data:any){
1111
const jsonString = JSON.stringify(data);
12-
fs.writeFile("./src/app/api/posts.json", jsonString, (err) => {
12+
fs.writeFile("./src/app/api/posts.json", jsonString, (err:any) => {
1313
if (err) {
1414
console.log("Error writing file", err);
1515
} else {
@@ -24,7 +24,7 @@ type Post = {
2424
id: string;
2525
title: string;
2626
desc: string;
27-
date: Date;
27+
date: any;
2828
};
2929

3030
let posts: Post[] = file;

0 commit comments

Comments
 (0)