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

Method formatSelectField

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

Source from the content-addressed store, hash-verified

21 }
22
23 formatSelectField(field: IBaseFieldMeta) {
24 const property = field.property as any;
25 if (!property || !property?.options) {
26 {
27 return '';
28 }
29 }
30 const options = property.options as any;
31 if (!options) {
32 return '';
33 }
34 const optionsStr = options.map((o: any) => `"${ o.name }"`).join(' | ');
35 return `${ field.name }: ${ optionsStr };`;
36 }
37
38 formatMultiSelectField(field: IBaseFieldMeta) {
39 const property = field.property as any;

Callers 2

formatFieldMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected