---
url: >-
  https://lit-ui-router.dev/reference/ui-router-server/connect/type-aliases/ConnectNext.md
---
[ui-router-server](../../index.md) / [connect](../index.md) / ConnectNext

# Type Alias: ConnectNext

```ts
type ConnectNext = (error?) => void;
```

Defined in: [connect.ts:63](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/ui-router-server/src/connect.ts#L63)

Connect's continuation: call with no argument to pass, with an error to fail.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `error?` | `unknown` |

## Returns

`void`
