Interface TypedObject

Any object with an _type property (which is required in portable text arrays), as well as a potential _key (highly encouraged)

interface TypedObject {
    _type: string;
    _key?: string;
}

Hierarchy (view full)

Properties

Properties

_type: string

Identifies the type of object/span this is, and is used to pick the correct React components to use when rendering a span or inline object with this type.

_key?: string

Uniquely identifies this object within its parent block. Not required, but highly encouraged.