Created
May 24, 2017 04:53
-
-
Save MoOx/04b0ee67cd89b34ccaeb6508b21412c4 to your computer and use it in GitHub Desktop.
fb-watchman flow interface
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type Watch = {} | |
export type CommandResponse = { | |
watch: Watch, | |
relative_path: string, | |
} | |
export type Subscription = { | |
expression: Array<string | [ string, string ]>, | |
fields: Array<string>, | |
relative_root: string, | |
} | |
export type WatchEvent = { | |
files: Array<Object>, | |
} | |
declare module "fb-watchman" { | |
declare class Client { | |
capabilityCheck(config: Object, callback: (error: any) => void): void; | |
command(config: ["watch-project", string], callback: (error: any, response: CommandResponse) => void): void; | |
command(config: ["subscribe", Watch, "files", Subscription], callback: (error: any) => void): void; | |
on(eventName: string, callback: (event: WatchEvent) => void): void; | |
end(): void; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Your article is very specific and detailed. It solved very quickly the problem I was having gmail login