---
title: "TypeshadeHover: interface in Editor, TypeShade API reference"
description: "TypeshadeHover, an interface in Editor. Hover documentation and source span returned by the language layer."
url: https://typeshade.dev/api/typeshadehover/
language: en
---

# `TypeshadeHover`

Interface in Editor

Hover documentation and source span returned by the language layer.

`import type { TypeshadeHover } from 'typeshade'`

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

## Syntax

```ts
interface TypeshadeHover {
  readonly contents: readonly string[];
  readonly span: TypeshadeTextSpan;
  readonly range: TypeshadeRange;
}
```

## Instance properties

**`contents` read only `readonly string[]`**

Rendered hover content, one entry per section.

**`span` read only `TypeshadeTextSpan`**

UTF-16 offset span the hover documents.

**`range` read only `TypeshadeRange`**

Zero-based half-open range the hover documents, equivalent to `span`.

## Source

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