Files
365devnet/src/types.ts
2023-03-21 13:21:06 +01:00

41 lines
644 B
TypeScript

import { AstroComponentFactory } from 'astro/dist/runtime/server';
export interface Post {
id: string;
slug: string;
publishDate: Date;
title: string;
description?: string;
image?: string;
canonical?: string | URL;
permalink?: string;
draft?: boolean;
excerpt?: string;
category?: string;
tags?: Array<string>;
author?: string;
Content: AstroComponentFactory;
content?: string;
readingTime?: number;
}
export interface MetaSEO {
title?: string;
description?: string;
image?: string;
canonical?: string | URL;
noindex?: boolean;
nofollow?: boolean;
ogTitle?: string;
ogType?: string;
}