Update typescript to 4.9.5

Reviewed By: passy

Differential Revision: D46068908

fbshipit-source-id: 4c1ffff8690eec5a10c67d6c5d1aacf224e0f0d4
This commit is contained in:
Anton Kastritskiy
2023-05-23 03:15:10 -07:00
committed by Facebook GitHub Bot
parent d6b852d435
commit fda21e96e8
7 changed files with 12 additions and 15 deletions

View File

@@ -102,7 +102,7 @@ export abstract class FlipperBasePlugin<
Actions extends BaseAction,
PersistedState,
> extends Component<Props<PersistedState>, State> {
abstract ['constructor']: any;
['constructor']: any;
static title: string | null = null;
static category: string | null = null;
static id: string = '';
@@ -219,7 +219,6 @@ export class FlipperDevicePlugin<
A extends BaseAction,
P,
> extends FlipperBasePlugin<S, A, P> {
['constructor']: typeof FlipperPlugin;
device: BaseDevice;
constructor(props: Props<P>) {
@@ -252,10 +251,8 @@ export class FlipperPlugin<
A extends BaseAction,
P,
> extends FlipperBasePlugin<S, A, P> {
['constructor']: typeof FlipperPlugin;
constructor(props: Props<P>) {
super(props);
// @ts-ignore constructor should be assigned already
const {id} = this.constructor;
this.subscriptions = [];
const realClient = (this.realClient = props.target as Client);