---
title: "TypeshadeCompletionItem: interface in Editor, TypeShade API"
description: "TypeshadeCompletionItem, an interface in Editor. Completion item exposed by the Typeshade language layer."
url: https://typeshade.dev/api/typeshadecompletionitem/
language: en
---

# `TypeshadeCompletionItem`

Interface in Editor

Completion item exposed by the Typeshade language layer.

`import type { TypeshadeCompletionItem } from 'typeshade'`

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

## Syntax

```ts
interface TypeshadeCompletionItem {
  readonly label: string;
  readonly kind: 'keyword' | 'type' | 'function' | 'attribute' | 'value';
  readonly detail: string;
  readonly insertText?: string;
}
```

## Instance properties

**`label` read only `string`**

Text shown for the completion item.

**`kind` read only `'keyword' | 'type' | 'function' | 'attribute' | 'value'`**

Category used to pick an editor icon and grouping.

**`detail` read only `string`**

Short human-readable description shown alongside the label.

**`insertText` optional read only `string`**

Snippet text to insert, when it differs from `label`.

## Source

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