How to use the ts-lib-utils/dist/js-doc.getJsDocs function in ts-lib-utils

To help you get started, we’ve selected a few ts-lib-utils examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github plantain-00 / types-as-schema / src / parser.ts View on Github external
private getJsDocs(node: ts.Node, sourceFile: ts.SourceFile) {
    const jsDocs = utilGetJsDocs(node)
    const result: JsDoc[] = []
    for (const jsDoc of jsDocs) {
      result.push({
        ...jsDoc,
        type: jsDoc.type ? this.getType(jsDoc.type, sourceFile) : undefined
      })
    }
    return result
  }

ts-lib-utils

Utils to develop library using typescript

MIT
Latest version published 4 years ago

Package Health Score

56 / 100
Full package analysis

Similar packages