MCPcopy Create free account
hub / github.com/ConnectAI-E/TalkBase / formatMultiSelectField

Method formatMultiSelectField

utils/BaseSchema/tableParser.ts:38–51  ·  view source on GitHub ↗
(field: IBaseFieldMeta)

Source from the content-addressed store, hash-verified

36 }
37
38 formatMultiSelectField(field: IBaseFieldMeta) {
39 const property = field.property as any;
40 if (!property || !property?.options) {
41 {
42 return '';
43 }
44 }
45 const options = property.options as any;
46 if (!options) {
47 return '';
48 }
49 const optionsStr = options.map((o: any) => `"${ o.name }"`).join(' | ');
50 return `${ field.name }: (${ optionsStr })[];`;
51 }
52
53 formatNumberField(iBaseFieldMeta: IBaseFieldMeta) {
54 return `${ iBaseFieldMeta.name }: number;`;

Callers 2

formatFieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected