Skip to content

toConfigFragment

toConfigFragment(result, accepted): string

Defined in: src/suggest/engine.ts:105

Renders the accepted suggestions as a paste-ready TypeScript snippet in the project’s defineConfig style (2-space indent, single quotes): the needed categories entries (only ones the user does not already have, per result.categories) followed by the rules entries. Pure string building — the CLI uses it both for file writing and print-to-paste.

SuggestionResult

object[]

string