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

x/live/blocks/propsLoader.ts>PropsUnion

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
type alias PropsUnion
import { type PropsUnion } from "https://deno.land/x/live@1.36.6/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