Explicit cast instead of ts-ignore

Summary: Slightly safer.

Reviewed By: jknoxville

Differential Revision: D17686947

fbshipit-source-id: 2c478707e20a1475427be4a652283960e4515cf9
This commit is contained in:
Pascal Hartig
2019-10-01 08:46:46 -07:00
committed by Facebook Github Bot
parent be72debf99
commit 25cdca1d6f

View File

@@ -180,8 +180,7 @@ export class FlipperDevicePlugin<
constructor(props: Props<P>) {
super(props);
// @ts-ignore props.target will be instance of Device
this.device = props.target;
this.device = props.target as BaseDevice;
}
_init() {