MCPcopy Create free account
hub / github.com/triggerdotdev/trigger.dev / getHeadings

Method getHeadings

packages/cli-v3/src/utilities/ink-table.tsx:117–126  ·  view source on GitHub ↗

* Returns a (data) row representing the headings.

()

Source from the content-addressed store, hash-verified

115 * Returns a (data) row representing the headings.
116 */
117 getHeadings(): Partial<T> {
118 const { columns } = this.getConfig();
119
120 const headings: Partial<T> = columns.reduce(
121 (acc, column) => ({ ...acc, [column]: column }),
122 {}
123 );
124
125 return headings;
126 }
127
128 /* Rendering utilities */
129

Callers 1

renderMethod · 0.95

Calls 1

getConfigMethod · 0.95

Tested by

no test coverage detected