@morph-mapper/source / LogicBlockConfig
Type Alias: LogicBlockConfig<K, R, D, P>
LogicBlockConfig<
K,R,D,P> =object
Defined in: types/logic.ts:74
A generic, reusable shape for defining a logic block. It specifies all required metadata (title, description, category, icon), behavior (mutation, rules), and structure (options, ports, node type), while keeping the concrete types of type (K), rules (R), options (D), and ports (P) flexible so different block systems can plug in their own types.
Type Parameters
K
K extends string
R
R
D
D extends OptionsRecord
P
P extends PortConfig = PortConfig
Properties
category
category: keyof typeof
LOGIC_CATEGORIES|"internal"
Defined in: types/logic.ts:81
description
description:
string
Defined in: types/logic.ts:83
icon
icon:
IconType
Defined in: types/logic.ts:85
mutation
mutation:
MutationWithInputs<P,OptionsAsArgument<D>>
Defined in: types/logic.ts:88
node
node:
GraphNode
Defined in: types/logic.ts:84
options
options:
D
Defined in: types/logic.ts:86
ports
ports:
P
Defined in: types/logic.ts:87
rules
rules:
R
Defined in: types/logic.ts:89
title
title:
string
Defined in: types/logic.ts:80
type
type:
K
Defined in: types/logic.ts:82