block-obj-builder
Version:
Block object builder
65 lines (64 loc) • 1.38 kB
TypeScript
export default interface BlockItemObj {
title?: {
any?: string;
en?: string;
nl?: string;
cy?: string;
it?: string;
};
subtitle?: {
any?: string;
en?: string;
nl?: string;
cy?: string;
it?: string;
};
image?: string;
choices?: Array<{
title?: {
any?: string;
en?: string;
nl?: string;
cy?: string;
it?: string;
};
selectedTitle?: string;
action: {
type: string;
value?: any;
};
profile?: any;
userStatus?: string;
formField?: boolean;
session?: any;
functionArgs?: any;
persistentMenu?: boolean;
selectBlock?: {
id: string;
};
}>;
defaultChoice?: {
title?: {
any?: string;
en?: string;
nl?: string;
cy?: string;
it?: string;
};
selectedTitle?: string;
action: {
type: string;
value?: any;
};
profile?: any;
userStatus?: string;
formField?: boolean;
session?: any;
functionArgs?: any;
persistentMenu?: boolean;
selectBlock?: {
id: string;
};
};
_id?: any;
}