Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/live/engine/block.ts>BlockInstance

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

Type Parameters

key extends BlockKeys<TManifest> & string
optional
TManifest extends AppManifest = AppManifest
optional
block extends BlockFromKey<key, TManifest> = BlockFromKey<key, TManifest>
definition: BlockFunc<key, TManifest, block> extends (...args: infer Props) => PromiseOrValue<infer TReturn> ? TReturn extends ReturnType<ComponentFunc<any>> ? PreactComponent<Props[0]> : TReturn : unknown