---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/dev-tools/type-aliases/DevGateFn.md
description: Gate callback used by the pipeline.
---

# Type Alias: DevGateFn

```ts
type DevGateFn = (
  ctx: DevGateContext,
  call: DevGateCall,
) => DevGateVerdict | void | Promise<DevGateVerdict | void>;
```

Defined in: [src/batteries/dev\_tools/types.ts:242](https://github.com/NHTIO/ADK/blob/master/src/src/batteries/dev_tools/types.ts#L242)

Gate callback used by the pipeline.

## Parameters

| Parameter | Type                                                |
| --------- | --------------------------------------------------- |
| `ctx`     | [`DevGateContext`](../interfaces/DevGateContext.md) |
| `call`    | [`DevGateCall`](../interfaces/DevGateCall.md)       |

## Returns

| [`DevGateVerdict`](DevGateVerdict.md)
| `void`
| `Promise`<[`DevGateVerdict`](DevGateVerdict.md) | `void`>
