PHP 7.4.33
Preview: index.d.ts Size: 2.39 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/metro-file-map/src/index.d.ts
/**
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 *
 * @format
 * @oncall react_native
 */

import type {
  BuildParameters,
  BuildResult,
  CacheData,
  CacheManagerFactory,
  ChangeEventMetadata,
  Console,
  FileData,
  FileSystem,
  HasteConflict,
  HasteMapData,
  HasteMapItem,
  PerfLoggerFactory,
} from './flow-types';
import type {EventEmitter} from 'events';

export type {
  BuildParameters,
  CacheData,
  ChangeEventMetadata,
  FileData,
  FileMap,
  FileSystem,
  HasteMapData,
  HasteMapItem,
};

export type InputOptions = Readonly<{
  computeDependencies?: boolean | null;
  computeSha1?: boolean | null;
  enableSymlinks?: boolean | null;
  extensions: ReadonlyArray<string>;
  forceNodeFilesystemAPI?: boolean | null;
  ignorePattern?: RegExp | null;
  mocksPattern?: string | null;
  platforms: ReadonlyArray<string>;
  retainAllFiles: boolean;
  rootDir: string;
  roots: ReadonlyArray<string>;
  skipPackageJson?: boolean | null;

  /** Module paths that should export a 'getCacheKey' method */
  dependencyExtractor?: string | null;
  hasteImplModulePath?: string | null;

  perfLoggerFactory?: PerfLoggerFactory | null;
  resetCache?: boolean | null;
  maxWorkers: number;
  throwOnModuleCollision?: boolean | null;
  useWatchman?: boolean | null;
  watchmanDeferStates?: ReadonlyArray<string>;
  watch?: boolean | null;
  console?: Console;
  cacheManagerFactory?: CacheManagerFactory | null;

  healthCheck: HealthCheckOptions;
}>;

type HealthCheckOptions = Readonly<{
  enabled: boolean;
  interval: number;
  timeout: number;
  filePrefix: string;
}>;

export {DiskCacheManager} from './cache/DiskCacheManager';
export {DuplicateHasteCandidatesError} from './lib/DuplicateHasteCandidatesError';
export type {HasteMap} from './flow-types';
export type {HealthCheckResult} from './Watcher';
export type {
  CacheManager,
  CacheManagerFactory,
  ChangeEvent,
  WatcherStatus,
} from './flow-types';

export default class FileMap extends EventEmitter {
  static create(options: InputOptions): FileMap;
  constructor(options: InputOptions);
  build(): Promise<BuildResult>;
  read(): Promise<CacheData | null>;
}

export class HasteConflictsError extends Error {
  constructor(conflicts: ReadonlyArray<HasteConflict>);
  getDetailedMessage(pathsRelativeToRoot?: string): string;
}

Directory Contents

Dirs: 5 × Files: 15
Name Size Perms Modified Actions
cache DIR
- drwxr-xr-x 2025-03-28 11:04:32
Edit Download
crawlers DIR
- drwxr-xr-x 2025-03-28 11:04:32
Edit Download
lib DIR
- drwxr-xr-x 2025-03-28 11:04:32
Edit Download
plugins DIR
- drwxr-xr-x 2025-03-28 11:04:32
Edit Download
watchers DIR
- drwxr-xr-x 2025-03-28 11:04:32
Edit Download
285 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
1.06 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
9.49 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
14 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
12.11 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
2.39 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
25.24 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
34.69 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
575 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
8.49 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
9.47 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
2.25 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
3.11 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
407 B lrw-r--r-- 2025-03-28 11:04:32
Edit Download
1.30 KB lrw-r--r-- 2025-03-28 11:04:32
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).