Composition / foldkit-builder
DragSource
const · packages/builder/src/index.ts:61
const DragSource: Schema.Union<
readonly [
Schema.TaggedStruct<
'Existing',
{
readonly id: Schema.brand<
Schema.NonEmptyString,
'@foldkit-composition/NodeId'
>
}
>,
Schema.TaggedStruct<'New', { readonly block: Schema.String }>,
]
>Its type
type DragSource = typeof DragSource.TypeWhat a drag carries: a node on the page, or a new node of a Block, from the palette.