Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/live/engine/block.ts>BlockInstance

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