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
This commit is contained in:
committed by
Facebook Github Bot
parent
c5a6ed0839
commit
c0aaf6037d
@@ -154,7 +154,7 @@ export class FlipperDevicePlugin<S = *, A = *, P = *> extends FlipperBasePlugin<
|
||||
> {
|
||||
device: BaseDevice;
|
||||
|
||||
constructor(props: Props<*>) {
|
||||
constructor(props: Props<P>) {
|
||||
super(props);
|
||||
this.device = props.target;
|
||||
}
|
||||
@@ -175,7 +175,7 @@ export class FlipperPlugin<S = *, A = *, P = *> extends FlipperBasePlugin<
|
||||
A,
|
||||
P,
|
||||
> {
|
||||
constructor(props: Props<*>) {
|
||||
constructor(props: Props<P>) {
|
||||
super(props);
|
||||
const {id} = this.constructor;
|
||||
this.subscriptions = [];
|
||||
|
||||
Reference in New Issue
Block a user