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



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

Defined in: [src/handlers/VariableGetter.ts:17](https://github.com/DRincs-Productions/pixi-vn-json/blob/336c45bc1f677c3b088aac058f0a457afc7cf32e/src/handlers/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`](/jsdoc/pixi-vn-json/index/type-aliases/VariableGetterHandler)

The middleware handler to register.

Returns [#returns]

`void`
