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

x/blocks/engine/block.ts>Block

deco is the edge-native site editor and app framework for building dynamic, high-performance sites with a built-in visual admin UI.
Go to Latest
interface Block
import { type Block } from "https://deno.land/x/blocks@1.28.0-beta.4/engine/block.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>[]