CompOutputActionsFactory
Defined in: projects/view-core/convert/action/typed-component-common.ts:133
outputs 工厂: 值类型取自表, 与 inputs 同族
Type Parameters
Section titled “Type Parameters”Tables
Section titled “Tables”Tables extends CompTables = CompTables
Properties
Section titled “Properties”mapAsync
Section titled “mapAsync”mapAsync: <
F,T>(fn) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:162
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”(field) => (value) => any
Returns
Section titled “Returns”CompAction<F, T>
merge: <
F,T>(outputs) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:156
merge / mergeAsync 与 patch 同族, key 同样按表约束
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”outputs
Section titled “outputs”T["outputsOrigin"]
Returns
Section titled “Returns”CompAction<F, T>
mergeAsync
Section titled “mergeAsync”mergeAsync: <
F,T>(outputs) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:159
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”outputs
Section titled “outputs”TightenEmpty<{ [K in string | number | symbol]?: (field: F) => NonNullable<T[“outputsOrigin”][K]> }>
Returns
Section titled “Returns”CompAction<F, T>
patch: <
F,T>(value) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:136
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["outputsOrigin"]
Returns
Section titled “Returns”CompAction<F, T>
patchAsync
Section titled “patchAsync”patchAsync: <
F,T,Data>(dataObj) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:142
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Data extends Record<string, never> | { [K in string | number | symbol]?: (field: F) => AsyncResult<T[“outputsOrigin”][K]> } = TightenEmpty<{ [K in string | number | symbol]?: (field: F) => AsyncResult<T[“outputsOrigin”][K]> }>
Parameters
Section titled “Parameters”dataObj
Section titled “dataObj”Data
Returns
Section titled “Returns”CompAction<F, T>
remove
Section titled “remove”remove: <
F,T>(list) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:152
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["outputKeys"][]
Returns
Section titled “Returns”CompAction<F, T>
set: <
F,T>(value) =>CompAction<F,T>
Defined in: projects/view-core/convert/action/typed-component-common.ts:139
Type Parameters
Section titled “Type Parameters”F
T extends CompTables = Tables
Parameters
Section titled “Parameters”T["outputsOrigin"]
Returns
Section titled “Returns”CompAction<F, T>