MCPcopy Create free account
hub / github.com/cometchat/cometchat-uikit-angular / extractDocumentedInputs

Function extractDocumentedInputs

scripts/docs-audit.ts:263–271  ·  view source on GitHub ↗

* Extracts documented property names from the Properties table(s) in an MDX file.

(docFilePath: string)

Source from the content-addressed store, hash-verified

261 * Extracts documented property names from the Properties table(s) in an MDX file.
262 */
263function extractDocumentedInputs(docFilePath: string): string[] {
264 const content = fs.readFileSync(docFilePath, 'utf-8');
265
266 // Match Properties table headers with various column formats:
267 // | Property | Type | Default | Description |
268 // | Property | Type | Description |
269 const headerPattern = /^\|\s*Property\s*\|.*Type\s*\|/i;
270 return parseTableColumn(content, headerPattern);
271}
272
273/**
274 * Extracts documented event names from the Events table(s) in an MDX file.

Callers 1

auditComponentFunction · 0.85

Calls 1

parseTableColumnFunction · 0.85

Tested by

no test coverage detected