How to use the getJSDocTags function from typescript

Find comprehensive JavaScript typescript.getJSDocTags code examples handpicked from public code repositorys.

392
393
394
395
396
397
398
399
400
401
name: item.name.escapedText,
type: type,
required: item.questionToken ? false : true,
defaultValue: undefined,
typeReference: getReferenceType(item, currentFile, fileMap),
jsDoc: ts.getJSDocTags(item).map(children => {
  return {
    tagName: children.tagName.escapedText,
    content: children.comment
  }
fork icon23
star icon78
watch icon1

+ 7 other calls in file

126
127
128
129
130
131
132
133
134
135
// returns true if it was added to the API without error
function checkJsDoc(declaration, node) {
  if (!declaration || !declaration.jsDoc)
    return;

  const tags = ts.getJSDocTags(declaration);
  if (!tags || tags.length === 0)
    return;

  function tagEscapedText(tag){
fork icon0
star icon0
watch icon2

+ 47 other calls in file

Other functions in typescript

Sorted by popularity

function icon

typescript.SyntaxKind is the most popular function in typescript (82777 examples)