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

x/live/blocks/section.ts>isSection

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
variable isSection
import { isSection } from "https://deno.land/x/live@1.41.11/blocks/section.ts";

type

<TManifest extends AppManifest = Manifest, K extends keyof TManifest["sections"] = keyof TManifest["sections"], Sec extends TManifest["sections"][K] extends { default: (props: infer Props) => JSX.Element | null; } ? PreactComponent<JSX.Element, Props> : unknown = TManifest["sections"][K] extends { default: (props: infer Props) => JSX.Element | null; } ? PreactComponent<JSX.Element, Props> : unknown>(s: Sec | Section, section: K) => s is Sec