From fefcd1f3a976fcf3a1752f577326ced8ec357091 Mon Sep 17 00:00:00 2001 From: Tom Theisel Date: Sat, 14 Oct 2023 08:05:54 +1100 Subject: [PATCH] fix(astro-portabletext): fix #92 Fix with `never` type Closes #92 --- astro-portabletext/lib/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/astro-portabletext/lib/types.ts b/astro-portabletext/lib/types.ts index eefcb27..9b7788b 100644 --- a/astro-portabletext/lib/types.ts +++ b/astro-portabletext/lib/types.ts @@ -90,11 +90,11 @@ export interface PortableTextComponents { /** * How marked text should be rendered */ - mark: ComponentOrRecord>> | ComponentOrRecord; + mark: ComponentOrRecord>; /** * Used when a `mark` handler isn't found */ - unknownMark: Component>> | Component; + unknownMark: Component>; /** * How line breaks should be rendered */