Make AndroidDevice strict
Summary: Relies heavily on types (not) defined in other modules, so right now it's mostly sprinkling more `any`s in. My type declaration is based on `dts-gen` output and some manual fixes. This is the same level as the old flow-typed definition we had. Reviewed By: jknoxville Differential Revision: D17282739 fbshipit-source-id: 0e5015d3b61044615a03c50fefade908041310a8
This commit is contained in:
committed by
Facebook Github Bot
parent
c2e2915471
commit
4f6bae7cbf
@@ -24,8 +24,8 @@ export default class AndroidDevice extends BaseDevice {
|
||||
super(serial, deviceType, title, 'Android');
|
||||
this.adb = adb;
|
||||
this.icon = 'icons/android.svg';
|
||||
this.adb.openLogcat(this.serial).then(reader => {
|
||||
reader.on('entry', entry => {
|
||||
this.adb.openLogcat(this.serial).then((reader: any) => {
|
||||
reader.on('entry', (entry: any) => {
|
||||
let type: LogLevel = 'unknown';
|
||||
if (entry.priority === Priority.VERBOSE) {
|
||||
type = 'verbose';
|
||||
|
||||
Reference in New Issue
Block a user