ServedContent.type
property · packages/cms-drizzle/src/index.ts:65
readonly type: Content<string, any, any, any>CMS / foldkit-cms-drizzle
interface · packages/cms-drizzle/src/index.ts:64
interface ServedContent<P = any> {
readonly type: Content<string, any, any, any>
readonly entity: AnyEntity
readonly binding: AnyEntityBinding
readonly create: MutationSource<P, DrizzleDatabase>
readonly update: MutationSource<P, DrizzleDatabase>
}A content type as the server holds it: its declaration, its Entity with the guards attached that its binding was bound from, the binding of its table, and the application's own handlers of its two publish mutations. What publishing a post does stays the application's code.
ServedContent.typeproperty · packages/cms-drizzle/src/index.ts:65
readonly type: Content<string, any, any, any>ServedContent.entityproperty · packages/cms-drizzle/src/index.ts:67
readonly entity: AnyEntitytype.entity with the guard set's rules attached: Post.pipe(Guards.attach(G, { … })).
ServedContent.bindingproperty · packages/cms-drizzle/src/index.ts:68
readonly binding: AnyEntityBindingServedContent.createproperty · packages/cms-drizzle/src/index.ts:69
readonly create: MutationSource<P, DrizzleDatabase>ServedContent.updateproperty · packages/cms-drizzle/src/index.ts:70
readonly update: MutationSource<P, DrizzleDatabase>