ts.js 531 B

123456789
  1. const {resolveModuleName} = require(`ts-pnp`);
  2. exports.resolveModuleName = (typescript, moduleName, containingFile, compilerOptions, resolutionHost) => {
  3. return resolveModuleName(moduleName, containingFile, compilerOptions, resolutionHost, typescript.resolveModuleName);
  4. };
  5. exports.resolveTypeReferenceDirective = (typescript, moduleName, containingFile, compilerOptions, resolutionHost) => {
  6. return resolveModuleName(moduleName, containingFile, compilerOptions, resolutionHost, typescript.resolveTypeReferenceDirective);
  7. };