PHP WebShell
Текущая директория: /usr/lib/node_modules/bitgo/node_modules/metro-file-map/src/cache
Просмотр файла: DiskCacheManager.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,
CacheData,
CacheManager,
CacheManagerWriteOptions,
} from '../flow-types';
export interface DiskCacheConfig {
buildParameters: BuildParameters;
cacheFilePrefix?: string | null;
cacheDirectory?: string | null;
}
export class DiskCacheManager implements CacheManager {
constructor(options: DiskCacheConfig);
static getCacheFilePath(
buildParameters: BuildParameters,
cacheFilePrefix?: string | null,
cacheDirectory?: string | null,
): string;
getCacheFilePath(): string;
read(): Promise<CacheData | null>;
write(
getSnapshot: () => CacheData,
opts: CacheManagerWriteOptions,
): Promise<void>;
end(): Promise<void>;
}
Выполнить команду
Для локальной разработки. Не используйте в интернете!