MCPcopy Create free account
hub / github.com/TanStack/query / promote

Function promote

scripts/generate-docs.ts:848–848  ·  view source on GitHub ↗
(block: string)

Source from the content-addressed store, hash-verified

846 // Repeat the last (most general) signature's `Parameters` and `Returns` once at the end, one
847 // heading level up, with the property tables, so every argument and the result are listed together.
848 const promote = (block: string) => block.replace(/^#(#+) /gm, '$1 ')
849 let parametersSummary = parametersHeading
850 ? `## Parameters\n\n${promote(parameters.trim())}`
851 : ''

Callers 1

addReferenceDetailsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected