Fix astro check errors on strict typescript, issue #293

This commit is contained in:
prototypa
2023-12-02 09:09:13 -05:00
parent cf40b9d093
commit 788acd9321
7 changed files with 42 additions and 26 deletions

4
src/types.d.ts vendored
View File

@@ -1,5 +1,5 @@
import type { AstroComponentFactory } from 'astro/runtime/server/index.js';
import type { HTMLAttributes } from 'astro/types';
import type { HTMLAttributes, ImageMetadata } from 'astro/types';
export interface Post {
/** A unique ID number that identifies a post. */
@@ -21,7 +21,7 @@ export interface Post {
/** Optional summary of post content. */
excerpt?: string;
/** */
image?: string;
image?: ImageMetadata | string;
/** */
category?: string;