Skip to content

Commit

Permalink
Merge pull request onwidget#154 from AmadeusTwi/main
Browse files Browse the repository at this point in the history
add astro type for Post["Content"]
  • Loading branch information
prototypa authored May 17, 2023
2 parents 93cc017 + 655b910 commit 35ec51c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { AstroComponentFactory } from 'astro/dist/runtime/server';

export interface Post {
id: string;
slug: string;
Expand All @@ -18,7 +20,7 @@ export interface Post {
tags?: Array<string>;
author?: string;

Content: unknown;
Content: AstroComponentFactory;
content?: string;

readingTime?: number;
Expand Down

0 comments on commit 35ec51c

Please sign in to comment.