Module

x/live/blocks/section.ts>isSection

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