Skip to content

Commit 61f3217

Browse files
authored
fix: format unknown type (#275)
1 parent 42cf34b commit 61f3217

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/types.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,12 @@ export interface PortableTextMarkComponentProps<M extends TypedObject = Arbitrar
279279
* Any node type that we can't identify - eg it has an `_type`,
280280
* but we don't know anything about its other properties
281281
*/
282-
export type UnknownNodeType = {[key: string]: unknown; _type: string} | TypedObject
282+
export type UnknownNodeType =
283+
| {
284+
_type: string;
285+
[key: string]: unknown;
286+
}
287+
| TypedObject;
283288

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

0 commit comments

Comments
 (0)