Skip to content

Commit

Permalink
chore: widen the type to represent the actual representation
Browse files Browse the repository at this point in the history
  • Loading branch information
nperez0111 committed Dec 31, 2024
1 parent 10b9ffb commit d66bab4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/static-renderer/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* A mark type is either a JSON representation of a mark or a Prosemirror mark instance
*/
export type MarkType<
Type extends string = any,
Type extends string | { name: string } = any,
Attributes extends undefined | Record<string, any> = any,
> = {
type: Type;
Expand All @@ -15,7 +15,7 @@ export type MarkType<
* A node type is either a JSON representation of a node or a Prosemirror node instance
*/
export type NodeType<
Type extends string = any,
Type extends string | { name: string } = any,
Attributes extends undefined | Record<string, any> = any,
NodeMarkType extends MarkType = any,
Content extends NodeType[] = any,
Expand Down

0 comments on commit d66bab4

Please sign in to comment.