---
title: "TypeshadeRange: interface in Editor, TypeShade API reference"
description: "TypeshadeRange, an interface in Editor. A zero-based, half-open source range [start, end), following the LSP convention."
url: https://typeshade.dev/api/typeshaderange/
language: en
---

# `TypeshadeRange`

Interface in Editor

A zero-based, half-open source range \[start, end), following the LSP convention.

`import type { TypeshadeRange } from 'typeshade'`

The signature, the description and the examples come from the compiler's own source at commit af54ddad5.

## Syntax

```ts
interface TypeshadeRange {
  readonly start: TypeshadePosition;
  readonly end: TypeshadePosition;
}
```

## Instance properties

**`start` read only `TypeshadePosition`**

Inclusive start position of the range.

**`end` read only `TypeshadePosition`**

Exclusive end position of the range.

## Source

[`src/language-service.ts`, line 26](https://github.com/typeshade/typeshade/blob/af54ddad5/src/language-service.ts#L26), at commit af54ddad5
