# Type Alias: OnRunEvent<T> (/nqtr/index/type-aliases/OnRunEvent)



\> **OnRunEvent**\<`T`> = (`item`, `props`) => `any` | `Promise`\<`any`>

Defined in: [src/types/OnRunEvent.ts:6](https://github.com/DRincs-Productions/nqtr/blob/db22fe9e7612d547ff25befcc444cf095348917d/src/types/OnRunEvent.ts#L6)

The function that is called when the class is runned.

## Type Parameters [#type-parameters]

### T [#t]

`T`

## Parameters [#parameters]

### item [#item]

`T`

### props [#props]

[`OnRunProps`](/nqtr/index/interfaces/OnRunProps)

## Returns [#returns]

`any` | `Promise`\<`any`>
