UNPKG

tinacms

Version:

> The Fastest Way to Edit Next.js Content

14 lines (13 loc) 495 B
import { CMS, Plugin } from '../core'; import { Field } from './field'; import { FormOptions } from './form'; export interface ContentCreatorPlugin<FormShape> extends Plugin { __type: 'content-creator'; fields: Field[]; actions?: FormOptions<any>['actions']; buttons?: FormOptions<any>['buttons']; initialValues?: FormShape; onSubmit(value: FormShape, cms: CMS): Promise<void> | void; reset?: FormOptions<any>['reset']; onChange?: FormOptions<any>['onChange']; }