Skip to content

Commit

Permalink
fix(astro-portabletext): fix #92
Browse files Browse the repository at this point in the history
Fix with `never` type

Closes #92
  • Loading branch information
theisel committed Oct 13, 2023
1 parent e22615b commit fefcd1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions astro-portabletext/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ export interface PortableTextComponents {
/**
* How marked text should be rendered
*/
mark: ComponentOrRecord<Mark<Record<string, any>>> | ComponentOrRecord<Mark>;
mark: ComponentOrRecord<Mark<never>>;
/**
* Used when a `mark` handler isn't found
*/
unknownMark: Component<Mark<Record<string, any>>> | Component<Mark>;
unknownMark: Component<Mark<never>>;
/**
* How line breaks should be rendered
*/
Expand Down

0 comments on commit fefcd1f

Please sign in to comment.