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

x/live/blocks/propsLoader.ts>PropsUnion

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