From c0aaf6037db7f0cfa414c4303dcbc8ba7e556411 Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Mon, 3 Jun 2019 07:04:17 -0700 Subject: [PATCH] Fix prop declaration Summary: There's a mismatch as we don't use the same existential qualification in the constructor as we do for the class definition. This this enforced more strictly in newer Flow versions. Reviewed By: danielbuechele Differential Revision: D15601548 fbshipit-source-id: 807ef9ba74933fbc653514a617d1008f4f65c631 --- src/plugin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin.js b/src/plugin.js index e1bcbf7c0..f36ce17a1 100644 --- a/src/plugin.js +++ b/src/plugin.js @@ -154,7 +154,7 @@ export class FlipperDevicePlugin extends FlipperBasePlugin< > { device: BaseDevice; - constructor(props: Props<*>) { + constructor(props: Props

) { super(props); this.device = props.target; } @@ -175,7 +175,7 @@ export class FlipperPlugin extends FlipperBasePlugin< A, P, > { - constructor(props: Props<*>) { + constructor(props: Props

) { super(props); const {id} = this.constructor; this.subscriptions = [];