From 22f8d26c338643d6af02259d00e717919ecf0016 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Thu, 3 Oct 2019 08:45:42 -0700 Subject: [PATCH] Use explicit cast in plugin.tsx Summary: Marginally safer than ignoring the entire line, which makes type-checking weaker on subsequent references. Reviewed By: jknoxville Differential Revision: D17736479 fbshipit-source-id: 13afcb5f08e53016b7a6cdc7ea135e726586a67b --- src/plugin.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugin.tsx b/src/plugin.tsx index bf117f2f2..617a6889b 100644 --- a/src/plugin.tsx +++ b/src/plugin.tsx @@ -209,8 +209,7 @@ export class FlipperPlugin< // @ts-ignore constructor should be assigned already const {id} = this.constructor; this.subscriptions = []; - // @ts-ignore props.target will be instance of Client - this.realClient = props.target; + this.realClient = props.target as Client; this.client = { call: (method, params) => this.realClient.call(id, method, true, params), send: (method, params) => this.realClient.send(id, method, params),