9 lines
184 B
TypeScript
9 lines
184 B
TypeScript
// @ts-expect-error
|
|
import Posts from "./posts.json";
|
|
import type { Post } from "~/types";
|
|
|
|
export const posts: Post[] = Posts.map((p: Post) => ({
|
|
...p,
|
|
date: new Date(p.date),
|
|
}));
|