UNPKG

stackpress

Version:

Incept is a content management framework.

30 lines (29 loc) 1.01 kB
import type { SchemaConfig } from '@stackpress/idea-parser/types'; import type Server from '@stackpress/ingest/Server'; import type Engine from '@stackpress/inquire/Engine'; import type Create from '@stackpress/inquire/Create'; import type Fieldset from '../schema/spec/Fieldset'; import type Model from '../schema/spec/Model'; import type Registry from '../schema/Registry'; import type { Actions } from '../sql/actions'; export type ClientConfig = { lang: string; revisions: string; build: string; module: string; tsconfig: string; }; export type ClientPlugin<M extends Record<string, unknown> = {}, F extends Record<string, unknown> = {}> = { config: SchemaConfig; registry: Registry; fieldset: Record<string, F & { config: Fieldset; }>; model: Record<string, M & { config: Model; events: Server; schema: Create; actions: (engine: Engine, seed?: string) => Actions<M>; admin(server: Server<any, any, any>): void; }>; };