Migrate ArchivedDevice from js to tsx
Summary: As per the title Reviewed By: passy Differential Revision: D16667144 fbshipit-source-id: 9fe923f8389feafa66d6bf6967217ce89ddbfaf2
This commit is contained in:
committed by
Facebook Github Bot
parent
47a55b0f26
commit
f26a28f6f6
@@ -10,7 +10,7 @@ import BaseDevice from './BaseDevice.tsx';
|
||||
import {Priority} from 'adbkit-logcat-fb';
|
||||
import child_process from 'child_process';
|
||||
import child_process_promise from 'child-process-es6-promise';
|
||||
import ArchivedDevice from './ArchivedDevice.js';
|
||||
import ArchivedDevice from './ArchivedDevice.tsx';
|
||||
|
||||
type ADBClient = any;
|
||||
|
||||
|
||||
@@ -4,15 +4,11 @@
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* @format
|
||||
*/
|
||||
import BaseDevice from './BaseDevice.tsx';
|
||||
import type {
|
||||
DeviceType,
|
||||
OS,
|
||||
DeviceShell,
|
||||
DeviceLogEntry,
|
||||
} from './BaseDevice.tsx';
|
||||
import BaseDevice from './BaseDevice';
|
||||
import {DeviceType, OS, DeviceShell, DeviceLogEntry} from './BaseDevice';
|
||||
|
||||
export default class ArchivedDevice extends BaseDevice {
|
||||
// @ts-ignore: Super needs to be on the first line
|
||||
constructor(
|
||||
serial: string,
|
||||
deviceType: DeviceType,
|
||||
@@ -44,7 +40,7 @@ export default class ArchivedDevice extends BaseDevice {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
spawnShell(): ?DeviceShell {
|
||||
spawnShell(): DeviceShell | undefined | null {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user