Files
FrenoCorp/node_modules/metro-file-map/src/watchers/AbstractWatcher.d.ts
Michael Freno 7c684a42cc FRE-600: Fix code review blockers
- 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>
2026-04-25 00:08:01 -04:00

42 lines
1.4 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
* @generated SignedSource<<ba8a5de14ca08c751a87bea6b356a670>>
*
* This file was translated from Flow by scripts/generateTypeScriptDefinitions.js
* Original file: packages/metro-file-map/src/watchers/AbstractWatcher.js
* To regenerate, run:
* js1 build metro-ts-defs (internal) OR
* yarn run build-ts-defs (OSS)
*/
import type {
WatcherBackend,
WatcherBackendChangeEvent,
WatcherBackendOptions,
} from '../flow-types';
export type Listeners = Readonly<{
onFileEvent: (event: WatcherBackendChangeEvent) => void;
onError: (error: Error) => void;
}>;
export declare class AbstractWatcher implements WatcherBackend {
readonly root: string;
readonly ignored: null | undefined | RegExp;
readonly globs: ReadonlyArray<string>;
readonly dot: boolean;
readonly doIgnore: (path: string) => boolean;
constructor(dir: string, opts: WatcherBackendOptions);
onFileEvent(listener: (event: WatcherBackendChangeEvent) => void): () => void;
onError(listener: (error: Error) => void): () => void;
startWatching(): Promise<void>;
stopWatching(): Promise<void>;
emitFileEvent(event: Omit<WatcherBackendChangeEvent, 'root'>): void;
emitError(error: Error): void;
getPauseReason(): null | undefined | string;
}