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 onlystringText shown for the completion item.
kindread only'keyword' | 'type' | 'function' | 'attribute' | 'value'Category used to pick an editor icon and grouping.
detailread onlystringShort human-readable description shown alongside the label.
insertTextoptionalread onlystringSnippet text to insert, when it differs from
label.
Source
src/language-service.ts, line 66, at commit 26de7be8