# 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/f2528001a05fe854a897e0c1d03c7e311fe08af2/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`
