lib/typescript-preprocessor.js
function typePaths(config) {
  var out = [
      "node_modules/@types",
  ];
  var paths = (config.compilerOptions && config.compilerOptions.paths) || {};
  Object.keys(paths).forEach( function eachEntry(k) {
    // paths may contain a /*, eliminate it
    paths[k].forEach(function eachPath(a) {
      var p = a.split("/\*")[0];
      if (out.indexOf(p) < 0) {
        out.push(p);
      }
    });
  });
  debug("type paths", out);
  return out;
}
function typePaths(config) {
  var out = [
      "node_modules/@types",
  ];
  var paths = (config.compilerOptions && config.compilerOptions.paths) || {};
  Object.keys(paths).forEach( function eachEntry(k) {
    // paths may contain a /*, eliminate it
    paths[k].forEach(function eachPath(a) {
      var p = a.split("/\*")[0];
      if (out.indexOf(p) < 0) {
        out.push(p);
      }
    });
  });
  debug("type paths", out);
  return out;
}
function typePaths ( config ) { var out = [ "node_modules/@types" , ] ; var paths = ( config . compilerOptions && config . compilerOptions . paths ) || { } ; Object . keys ( paths ) . forEach ( function eachEntry ( k ) { // paths may contain a /*, eliminate it paths [ k ] . forEach ( function eachPath ( a ) { var p = a . split ( "/\*" ) [ 0 ] ; if ( out . indexOf ( p ) < 0 ) { out . push ( p ) ; } } ) ; } ) ; debug ( "type paths" , out ) ; return out ; }
Return the paths which contain type information.
Return the paths which contain type information .