Explicit cast instead of ts-ignore
Summary: Slightly safer. Reviewed By: jknoxville Differential Revision: D17686947 fbshipit-source-id: 2c478707e20a1475427be4a652283960e4515cf9
This commit is contained in:
committed by
Facebook Github Bot
parent
be72debf99
commit
25cdca1d6f
@@ -180,8 +180,7 @@ export class FlipperDevicePlugin<
|
|||||||
|
|
||||||
constructor(props: Props<P>) {
|
constructor(props: Props<P>) {
|
||||||
super(props);
|
super(props);
|
||||||
// @ts-ignore props.target will be instance of Device
|
this.device = props.target as BaseDevice;
|
||||||
this.device = props.target;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
_init() {
|
_init() {
|
||||||
|
|||||||
Reference in New Issue
Block a user