From 25cdca1d6fc69f2636f0ec390db060f5d66fd525 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 1 Oct 2019 08:46:46 -0700 Subject: [PATCH] Explicit cast instead of ts-ignore Summary: Slightly safer. Reviewed By: jknoxville Differential Revision: D17686947 fbshipit-source-id: 2c478707e20a1475427be4a652283960e4515cf9 --- src/plugin.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugin.tsx b/src/plugin.tsx index eb9b0650e..bf117f2f2 100644 --- a/src/plugin.tsx +++ b/src/plugin.tsx @@ -180,8 +180,7 @@ export class FlipperDevicePlugin< constructor(props: Props

) { super(props); - // @ts-ignore props.target will be instance of Device - this.device = props.target; + this.device = props.target as BaseDevice; } _init() {