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

x/blocks/blocks/section.ts>isSection

Git-based Visual CMS for Deno, </> htmx and Tailwind apps. Deploy on any Deno-compatible host.
Latest
variable isSection
import { isSection } from "https://deno.land/x/blocks@1.75.0/blocks/section.ts";

type

<TManifest extends AppManifest = AppManifest, K extends keyof TManifest["sections"] = keyof TManifest["sections"], Sec extends TManifest["sections"][K] extends { default: ComponentFunc<infer Props>; } ? PreactComponent<Props> : unknown = TManifest["sections"][K] extends { default: ComponentFunc<infer Props>; } ? PreactComponent<Props> : unknown>(s: Sec | Section, section: K | string) => s is Sec