Leaflet Blog in Deno Fresh

Update api.ts

Changed files
+3 -3
lib
+3 -3
lib/api.ts
··· 15 15 return posts.data.records.filter( 16 16 drafts, 17 17 ) as (ComAtprotoRepoListRecords.Record & { 18 - value: ComWhtwndBlogEntry.Record; 18 + value: ComWhtwndBlogEntry.Main; 19 19 })[]; 20 20 } 21 21 22 22 function drafts(record: ComAtprotoRepoListRecords.Record) { 23 23 if (Deno.env.get("NODE_ENV") === "development") return true; 24 - const post = record.value as ComWhtwndBlogEntry.Record; 24 + const post = record.value as ComWhtwndBlogEntry.Main; 25 25 return post.visibility === "public"; 26 26 } 27 27 ··· 35 35 }); 36 36 37 37 return post.data as ComAtprotoRepoListRecords.Record & { 38 - value: ComWhtwndBlogEntry.Record; 38 + value: ComWhtwndBlogEntry.Main; 39 39 }; 40 40 }