MCPcopy Create free account
hub / github.com/chieapp/chie / parseStep

Function parseStep

src/view/messages-view.ts:278–284  ·  view source on GitHub ↗
(step: ChatStep | string)

Source from the content-addressed store, hash-verified

276
277// Parse the steps.
278function parseStep(step: ChatStep | string) {
279 if (typeof step == 'string')
280 return step;
281 if (step.toHTML)
282 return step.toHTML();
283 return step.toString();
284}

Callers

nothing calls this directly

Calls 2

toHTMLMethod · 0.80
toStringMethod · 0.80

Tested by

no test coverage detected