# Type Alias: HashtagHandler (/pixi-vn-ink/index/type-aliases/HashtagHandler)



\> **HashtagHandler** = (`command`, `props`, `convertListStringToObj`) => `boolean` | `string` | `Promise`\<`boolean` | `string`>

Defined in: [src/handlers/interfaces/HashtagHandler.ts:19](https://github.com/DRincs-Productions/pixi-vn-ink/blob/4189b16aca6500f4399aba615c79b6c6dc0bf152/src/handlers/interfaces/HashtagHandler.ts#L19)

A handler function invoked for each Hashtag-Command that passes the [HashtagHandlerOptions.validation](/pixi-vn-ink/index/interfaces/HashtagHandlerOptions#validation) check.

## Parameters [#parameters]

### command [#command]

`string`\[]

The Hashtag-Command split into tokens. Corresponds to a line starting with `#`.
For example `# navigate scene_name "Hello World"` becomes `["navigate", "scene_name", "Hello World"]`.
Use `""` to embed a literal space inside a single token.

### props [#props]

`StepLabelProps`

The properties of the current step.

### convertListStringToObj [#convertliststringtoobj]

(`listParm`) => `object`

Utility function that converts an alternating key/value list into
a plain object. For example `["name", "John", "age", "20"]` → `{ name: "John", age: 20 }`.

## Returns [#returns]

`boolean` | `string` | `Promise`\<`boolean` | `string`>

* `true` – the command was handled; stop processing further handlers and skip the default interpreter.
  * A `string` – treat the returned value as a new Hashtag-Command and re-interpret it.
  * `false` / `Promise<false>` – not handled; pass to the next registered handler.
