Installation
npm install --save @types/fb-watchman
Summary
This package contains type definitions for fb-watchman (https://facebook.github.io/watchman/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fb-watchman.
import { EventEmitter } from "events";
export type UnilateralTags = "unilateralTags" | "log";
export interface ClientOptions {
watchmanBinaryPath?: string | undefined;
}
export interface Capabilities {
optional: any[];
required: any[];
}
export type doneCallback = (error?: Error | null, resp?: any) => any;
export class Client extends EventEmitter {
constructor(options?: ClientOptions);
sendNextCommand(): void;
cancelCommands(why: string): void;
connect(): void;
command(args: any, done: doneCallback): void;
capabilityCheck(
caps: Capabilities,
done: doneCallback,
): void;
end(): void;
}
Additional Details
- Last updated: Wed, 18 Oct 2023 01:17:34 GMT
- Dependencies: @types/node
Credits
These definitions were written by Wu Haotian.