Files
flipper/types/adbkit-fb.d.tsx
Daniel Büchele ac120aa59c [strict[ ScreenCaptureButton
Summary: _typescript_

Reviewed By: jknoxville

Differential Revision: D17282357

fbshipit-source-id: 6ddd912978faa30195f59971f19d29d3ea79342b
2019-09-11 03:04:52 -07:00

25 lines
564 B
TypeScript

/**
* Copyright 2018-present Facebook.
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @format
*/
interface Device {
id: string;
type: 'emulator' | 'device' | 'offline';
}
interface Util {
readAll: (stream: NodeJS.ReadStream) => Promise<Buffer>;
}
declare module 'adbkit-fb' {
const util: Util;
const adbkit: any;
export interface Client {
listDevices: () => Promise<Device[]>;
}
export function createClient(config: {port: number; host: string}): Client;
}