Strictify adbClient

Summary: As per title

Reviewed By: jknoxville

Differential Revision: D17284770

fbshipit-source-id: 85bc6b2b19b38f409b7eb0fda6fb94655a05c0d9
This commit is contained in:
Pritesh Nandgaonkar
2019-09-10 10:34:31 -07:00
committed by Facebook Github Bot
parent ae825db691
commit 263a738972
2 changed files with 29 additions and 13 deletions

View File

@@ -5,8 +5,20 @@
* @format
*/
interface Device {
id: string;
type: 'emulator' | 'device' | 'offline';
}
interface Util {
readAll: (stream: NodeJS.ReadStream) => Promise<Buffer>;
}
declare module 'adbkit-fb' {
const util: any;
const adbkit: any;
export function createClient({port: number, host: string}): any;
export interface Client {
listDevices: () => Promise<Device[]>;
}
export function createClient(config: {port: number; host: string}): Client;
}