Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-14-meta/knowledge-formatter.ts
Methods
| Method | Signature | Returns |
|---|---|---|
format | `format(reference: MetaCategoryReference | undefined, options: { |
maxChars: number; maxEntries: number; snippetTypes?: SnippetType[]; groupByCategory?: boolean; })` | `string` |
| formatDocList | formatDocList(reference: MetaCategoryReference | undefined, options: { maxEntries: number }) | string |
| formatSnippets | formatSnippets(entries: KnowledgeEntry[], snippetType: SnippetType, maxChars: number) | string |
Where it refuses work
KnowledgeFormatterstops the work with an early return when!reference || !reference.entries || reference.entries.length === 0, in 2 places.KnowledgeFormatterstops the work with an early return whenentries.length === 0.KnowledgeFormatterstops the work with an early return whenoptions.groupByCategory.KnowledgeFormatterstops the work with an early return when!entries || entries.length === 0.
Was this page helpful?