Skip to content

Commit

Permalink
refactor: enhance type safety by casting imported JSON as 'any' in ge…
Browse files Browse the repository at this point in the history
…tAllPosts function
  • Loading branch information
JeelRajodiya committed Jan 1, 2025
1 parent 1bb48b6 commit 31cf251
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/build-rss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import json2xml from 'jgexml/json2xml';
import type { BlogPostTypes, RSS, RSSItemType } from '@/types/scripts/build-rss';

async function getAllPosts() {
const posts = (await import('../config/posts.json')).default;
const posts = ((await import('../config/posts.json')) as any).default;

return posts;
}
Expand Down

0 comments on commit 31cf251

Please sign in to comment.