You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Walker.d.ts 921B

1234567891011121314151617181920212223242526272829303132333435
  1. import { DepType } from './depTypes';
  2. import { NativeModuleType } from './nativeModuleTypes';
  3. export declare type VersionRange = string;
  4. export interface PackageJSON {
  5. name: string;
  6. dependencies: {
  7. [name: string]: VersionRange;
  8. };
  9. devDependencies: {
  10. [name: string]: VersionRange;
  11. };
  12. optionalDependencies: {
  13. [name: string]: VersionRange;
  14. };
  15. }
  16. export interface Module {
  17. path: string;
  18. depType: DepType;
  19. nativeModuleType: NativeModuleType;
  20. name: string;
  21. }
  22. export declare class Walker {
  23. private rootModule;
  24. private modules;
  25. private walkHistory;
  26. constructor(modulePath: string);
  27. private relativeModule;
  28. private loadPackageJSON;
  29. private walkDependenciesForModuleInModule;
  30. private detectNativeModuleType;
  31. private walkDependenciesForModule;
  32. private cache;
  33. walkTree(): Promise<Module[]>;
  34. getRootModule(): string;
  35. }