UNPKG

@webiny/api-page-builder-so-ddb-es

Version:

The DynamoDB + Elasticsearch storage operations Webiny Page Builder API.

19 lines (18 loc) 703 B
import { Plugin, PluginsContainer } from "@webiny/plugins"; import { Page } from "@webiny/api-page-builder/types"; interface ApplyPageDataParams<TPage, TData = Record<string, any>> { data: TData; input: Record<string, any>; page: TPage; plugins: PluginsContainer; } interface ApplyPageDataCallable<TPage, TData> { (params: ApplyPageDataParams<TPage, TData>): void; } export declare class IndexPageDataPlugin<TPage extends Page = Page, TData = Record<string, any>> extends Plugin { static readonly type: string; private readonly callable; constructor(callable: ApplyPageDataCallable<TPage, TData>); apply(params: ApplyPageDataParams<TPage, TData>): void; } export {};