-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
export type Component = {
id: string;
typeId: string;
data?: object;
custom?: object;
regions?: Array<Region>;
} & {
[key: string]: any;
};
data is now of type object... in v4 it was
data?: {} & {
[key: string]: any;
};
this allowed to do something like
component.data?.text_title
while now, typescript fails?
What's the reccomended way to access data properties in v5?
Metadata
Metadata
Assignees
Labels
No labels