Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,13 @@ export interface PortableTextMarkComponentOptions<M extends TypedObject = Arbitr
* Any node type that we can't identify - eg it has an `_type`,
* but we don't know anything about its other properties
*/
export type UnknownNodeType = {[key: string]: unknown; _type: string} | TypedObject
export type UnknownNodeType =
| {
_type: string;
[key: string]: unknown;
}
| TypedObject;


/**
* Function that renders any node that might appear in a portable text array or block,
Expand Down