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

x/blocks/blocks/propsLoader.ts>PropsUnion

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

Type Parameters

TLoadProps
TSectionInput
definition: TSectionInput extends Record<string, any> ? Overwrite<TSectionInput, Overwrite<[key in keyof Diff<Required<TSectionInput>, Pick<TLoadProps, RequiredKeys<TLoadProps>>>]: Diff<Required<TSectionInput>, Pick<TLoadProps, RequiredKeys<TLoadProps>>>[key], [key in keyof Intersection<Pick<TLoadProps, RequiredKeys<TLoadProps>>, Required<TSectionInput>>]?: Intersection<Pick<TLoadProps, RequiredKeys<TLoadProps>>, Required<TSectionInput>>[key] & [key in keyof Pick<TSectionInput, OptionalKeys<TSectionInput>>]?: Pick<TSectionInput, OptionalKeys<TSectionInput>>[key]>> : TSectionInput