---
url: https://docs.moqtail.dev/ts/api/client/type-aliases/EndOfRangeHandler.md
---
# Type Alias: EndOfRangeHandler

> **EndOfRangeHandler** = (`kind`, `location`) => `void`

Called for an End of Range marker on a fetch stream: every Location after the
previous Object, if any, up to and including `location`, does not exist, is unknown,
or timed out, as `kind` says. Without it, an unknown or timed-out range looks the
same as one that does not exist.

## Parameters

### kind

[`EndOfRangeKind`](../../model/enumerations/EndOfRangeKind.md)

### location

[`Location`](../../model/classes/Location.md)

## Returns

`void`
