# Function: add() (/pixi-vn-json/index/namespaces/VariableGetter/functions/add)



\> **add**(`handler`): `void`

Defined in: [src/actions/VariableGetter.ts:17](https://github.com/DRincs-Productions/pixi-vn-json/blob/0b113d798f5dcc85b78953dd2d5f2d71d01ff43a/src/actions/VariableGetter.ts#L17)

Registers a new middleware handler into the resolution chain.
Handlers are invoked in the order they were added.

## Parameters [#parameters]

### handler [#handler]

[`VariableGetterHandler`](/pixi-vn-json/index/type-aliases/VariableGetterHandler)

The middleware handler to register.

## Returns [#returns]

`void`
