MCPcopy Create free account
hub / github.com/apitable/apitable / getViewObject

Method getViewObject

packages/core/src/databus/logic/field.ts:41–43  ·  view source on GitHub ↗

* Get the view object of the field via `transform`.

(transform: (field: IField, options: IFieldVoTransformOptions) => R)

Source from the content-addressed store, hash-verified

39 * Get the view object of the field via `transform`.
40 */
41 getViewObject<R>(transform: (field: IField, options: IFieldVoTransformOptions) => R): R {
42 return transform(this.field, { state: this.store.getState() });
43 }
44}
45
46/**

Callers 5

record.test.tsFile · 0.45
field.test.tsFile · 0.45
databus.test.tsFile · 0.45
getFieldsMethod · 0.45
getRecordViewObjectsMethod · 0.45

Calls 1

transformFunction · 0.50

Tested by

no test coverage detected