- Consolidated duplicate UndoManagers to single instance - Fixed connection promise to only resolve on 'connected' status - Fixed WebSocketProvider import (WebsocketProvider) - Added proper doc.destroy() cleanup - Renamed isPresenceInitialized property to avoid conflict Co-Authored-By: Paperclip <noreply@paperclip.ing>
70 lines
2.1 KiB
TypeScript
70 lines
2.1 KiB
TypeScript
/**
|
|
* 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.
|
|
*
|
|
* @noformat
|
|
* @oncall react_native
|
|
* @generated SignedSource<<3d1462ab2325a09553e02b69b5de84eb>>
|
|
*
|
|
* This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
|
|
* Original file: packages/metro-file-map/src/plugins/HastePlugin.js
|
|
* To regenerate, run:
|
|
* js1 build metro-ts-defs (internal) OR
|
|
* yarn run build-ts-defs (OSS)
|
|
*/
|
|
|
|
import type {
|
|
Console,
|
|
FileMapPlugin,
|
|
FileMapPluginInitOptions,
|
|
FileMapPluginWorker,
|
|
HasteConflict,
|
|
HasteMap,
|
|
HasteMapItemMetadata,
|
|
HTypeValue,
|
|
Path,
|
|
PerfLogger,
|
|
ReadonlyFileSystemChanges,
|
|
} from '../flow-types';
|
|
|
|
export type HasteMapOptions = Readonly<{
|
|
console?: null | undefined | Console;
|
|
enableHastePackages: boolean;
|
|
hasteImplModulePath: null | undefined | string;
|
|
perfLogger?: null | undefined | PerfLogger;
|
|
platforms: ReadonlySet<string>;
|
|
rootDir: Path;
|
|
failValidationOnConflicts: boolean;
|
|
}>;
|
|
declare class HastePlugin
|
|
implements HasteMap, FileMapPlugin<null, string | null>
|
|
{
|
|
readonly name: 'haste';
|
|
constructor(options: HasteMapOptions);
|
|
initialize(
|
|
$$PARAM_0$$: FileMapPluginInitOptions<null, string | null>,
|
|
): Promise<void>;
|
|
getSerializableSnapshot(): null;
|
|
getModule(
|
|
name: string,
|
|
platform?: null | undefined | string,
|
|
supportsNativePlatform?: null | undefined | boolean,
|
|
type?: null | undefined | HTypeValue,
|
|
): null | undefined | Path;
|
|
getModuleNameByPath(mixedPath: Path): null | undefined | string;
|
|
getPackage(
|
|
name: string,
|
|
platform: null | undefined | string,
|
|
_supportsNativePlatform?: null | undefined | boolean,
|
|
): null | undefined | Path;
|
|
onChanged(delta: ReadonlyFileSystemChanges<null | undefined | string>): void;
|
|
setModule(id: string, module: HasteMapItemMetadata): void;
|
|
assertValid(): void;
|
|
computeConflicts(): Array<HasteConflict>;
|
|
getCacheKey(): string;
|
|
getWorker(): FileMapPluginWorker;
|
|
}
|
|
export default HastePlugin;
|