TypeshadeCompletionItem
On this page

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 26de7be8.

Syntax

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

Instance properties

labelread only string

Text shown for the completion item.

kindread only 'keyword' | 'type' | 'function' | 'attribute' | 'value'

Category used to pick an editor icon and grouping.

detailread only string

Short human-readable description shown alongside the label.

insertTextoptionalread only string

Snippet text to insert, when it differs from label.

Source

src/language-service.ts, line 66, at commit 26de7be8

Edit this page Report a problem