Strictify adbClient
Summary: As per title Reviewed By: jknoxville Differential Revision: D17284770 fbshipit-source-id: 85bc6b2b19b38f409b7eb0fda6fb94655a05c0d9
This commit is contained in:
committed by
Facebook Github Bot
parent
ae825db691
commit
263a738972
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user