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

x/live/engine/block.ts>Block

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
interface Block
import { type Block } from "https://deno.land/x/live@1.58.0/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>[]