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

x/blocks/engine/block.ts>BlockModule

Open-Source web editor based on Preact, Tailwind and TypeScript. The other side of code.
Go to Latest
type alias BlockModule
import { type BlockModule } from "https://deno.land/x/blocks@1.59.3/engine/block.ts";

Type Parameters

optional
TDefaultExportFunc extends ResolverLike<T> = ResolverLike
optional
T = TDefaultExportFunc extends ResolverLike<infer TValue> ? TValue : any
optional
TSerializable = T
definition: { default: TDefaultExportFunc; invoke?: Resolver<TSerializable, BlockInvocation, any>; preview?: Resolver<PreactComponent, TSerializable, any>; Preview?: ComponentFunc; onBeforeResolveProps?: (props: any, hints: HintNode<any>) => any; }