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),