# Type Alias: VariableGetterHandler (/pixi-vn-json/index/type-aliases/VariableGetterHandler)



\> **VariableGetterHandler** = \<`T`>(`value`, `next`) => `T` | `undefined`

Defined in: [src/actions/interfaces/VariableGetterHandler.ts:11](https://github.com/DRincs-Productions/pixi-vn-json/blob/f2528001a05fe854a897e0c1d03c7e311fe08af2/src/actions/interfaces/VariableGetterHandler.ts#L11)

A middleware handler that can intercept and transform a logic value before it is
returned by [VariableGetter.getLogichValue](/pixi-vn-json/index/namespaces/VariableGetter/functions/getLogichValue).

Handlers are called in registration order, each receiving the current value and a
`next` function to invoke the rest of the chain (including the built-in resolver).
Return `undefined` to fall through to `next`.

## Type Parameters [#type-parameters]

### T [#t]

`T` = `StorageElementType`

## Parameters [#parameters]

### value [#value]

`T`

### next [#next]

(`value`) => `T` | `undefined`

## Returns [#returns]

`T` | `undefined`
