Refactor BaseDevice constructor
Summary: OS must always be defined. Reviewed By: jknoxville Differential Revision: D17204398 fbshipit-source-id: 0d84111c382af623843a41360bcb472394daf3f1
This commit is contained in:
committed by
Facebook Github Bot
parent
dbab2d1d6d
commit
4d7e776672
@@ -51,10 +51,11 @@ export type DeviceExport = {
|
||||
export type OS = 'iOS' | 'Android' | 'Windows' | 'MacOS';
|
||||
|
||||
export default class BaseDevice {
|
||||
constructor(serial: string, deviceType: DeviceType, title: string) {
|
||||
constructor(serial: string, deviceType: DeviceType, title: string, os: OS) {
|
||||
this.serial = serial;
|
||||
this.title = title;
|
||||
this.deviceType = deviceType;
|
||||
this.os = os;
|
||||
}
|
||||
|
||||
// operating system of this device
|
||||
|
||||
Reference in New Issue
Block a user