LogoPixi’VN
indexNamespacesHashtagCommandsFunctions

Function: convertOperation()

> convertOperation(list, step, options?): PixiVNJsonOperation | undefined

Defined in: src/handlers/hashtag-commands.ts:281

Parameters

list

string[]

step

PixiVNJsonLabelStep

options?

silent?

boolean

When true, suppresses the "The operation is not valid" error log on a mapper miss. Callers that only speculatively probe the built-in .addMapper() table — e.g. to decide whether a hashtag script can be resolved eagerly at parse time, before falling back to a deferred operationtoconvert step that will later be resolved through the full run pipeline (custom .add() handlers included) — should pass silent: true. Otherwise every hashtag command registered only via .add() (never a mapper) would log a false "not valid" error on every parse, even though it resolves correctly once run() reaches it.

Returns

PixiVNJsonOperation | undefined

On this page