Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deco/mod.ts>Block

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Go to Latest
interface Block
import { type Block } from "https://deno.land/x/deco@1.75.1/mod.ts";

Type Parameters

optional
TBlockModule extends BlockModule<TDefaultExportFunc, TProvides, TSerializable> = BlockModule<any>
optional
TDefaultExportFunc extends ResolverLike<TProvides> = ResolverLike
optional
BType extends BlockType = BlockType
optional
TProvides = any
optional
TSerializable = any

Properties

optional
defaultDanglingRecover: Resolver<TSerializable> | ResolverMiddleware<TSerializable>[]
optional
defaultPreview: Resolver<PreactComponent, TSerializable, any>
optional
defaultInvoke: Resolver<TSerializable, BlockInvocation, any>
type: BType
optional
introspect: IntrospectParams
optional
decorate: <TBlockModule extends BlockModule<TDefaultExportFunc, TProvides, TSerializable> = BlockModule<TDefaultExportFunc, TProvides, TSerializable>>(blockModule: TBlockModule, key: string) => TBlockModule
optional
adapt: <TConfig = any>(blockModule: TBlockModule, key: string) => Resolver<TSerializable, TConfig, any> | ResolverMiddleware<TSerializable, TConfig, any>[]