How to use detective-typescript - 1 common examples

To help you get started, we’ve selected a few detective-typescript 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 dependents / node-precinct / index.js View on Github external
theDetective = detectiveSass;
      break;
    case 'less':
      theDetective = detectiveLess;
      break;
    case 'scss':
      theDetective = detectiveScss;
      break;
    case 'stylus':
      theDetective = detectiveStylus;
      break;
    case 'ts':
      theDetective = detectiveTypeScript;
      break;
    case 'tsx':
      theDetective = detectiveTypeScript.tsx;
      break;
  }

  if (theDetective) {
    dependencies = theDetective(ast, options[type]);
  } else {
    debug('no detective found for: ' + type);
  }

  // For non-JS files that we don't parse
  if (theDetective && theDetective.ast) {
    precinct.ast = theDetective.ast;
  }

  return dependencies;
}

detective-typescript

Get the dependencies of a TypeScript module

MIT
Latest version published 3 days ago

Package Health Score

89 / 100
Full package analysis

Popular detective-typescript functions