UNPKG

alm

Version:

The best IDE for TypeScript

29 lines (28 loc) 1.07 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function getLangHelp(node) { switch (node.kind) { case ts.SyntaxKind.StringKeyword: // : string return { displayName: "string type annotation", help: "https://basarat.gitbooks.io/typescript/content/docs/types/type-system.html#primitive-types" }; case ts.SyntaxKind.ConstKeyword: return { displayName: "const keyword", help: "https://basarat.gitbooks.io/typescript/content/docs/const.html" }; case ts.SyntaxKind.LetKeyword: return { displayName: "let keyword", help: "https://basarat.gitbooks.io/typescript/content/docs/let.html" }; case ts.SyntaxKind.ClassKeyword: return { displayName: "class keyword", help: "https://basarat.gitbooks.io/typescript/content/docs/classes.html" }; } } exports.getLangHelp = getLangHelp;