UNPKG

ts-lit-plugin

Version:

Typescript plugin that adds type checking and code completion to lit-html

25 lines (24 loc) 728 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function translateCompletionDetails(completionDetails, context) { return { name: completionDetails.name, kind: context.ts.ScriptElementKind.label, kindModifiers: "", displayParts: [ { text: completionDetails.primaryInfo, kind: "text" } ], documentation: completionDetails.secondaryInfo == null ? [] : [ { kind: "text", text: completionDetails.secondaryInfo } ] }; } exports.translateCompletionDetails = translateCompletionDetails;