We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c377d62 commit b077b9fCopy full SHA for b077b9f
src/app/lib/data.ts
@@ -9,7 +9,7 @@ const customer =
9
10
function saveJson(data:any){
11
const jsonString = JSON.stringify(data);
12
-fs.writeFile("./src/app/api/posts.json", jsonString, (err) => {
+fs.writeFile("./src/app/api/posts.json", jsonString, (err:any) => {
13
if (err) {
14
console.log("Error writing file", err);
15
} else {
@@ -24,7 +24,7 @@ type Post = {
24
id: string;
25
title: string;
26
desc: string;
27
- date: Date;
+ date: any;
28
};
29
30
let posts: Post[] = file;
0 commit comments