Types
Context
Argument for functions initialValue
and hidden
in Vev props
export type SchemaContextModel<T> = {
key?: string;
value?: Partial<T>;
storage?: SchemaStorage;
/**
* Project
*/
project?: { title: string; key: string; index: string };
/**
* Project pages
*/
pages?: { title: string; key: string; path?: string }[];
currentPage?: { title: string; key: string; path?: string; project?: string };
/**
* Named content models
*/
content?: {
key: string;
name?: string;
parentKey: string;
type: string;
content?: { [key: string]: any };
}[];
/**
* Events
*/
events?: VevContentEvent[];
};