We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5696702 commit ae7372dCopy full SHA for ae7372d
packages/polling-controller/src/PollingController.ts
@@ -2,8 +2,9 @@ import { BaseController, BaseControllerV2 } from '@metamask/base-controller';
2
import type { NetworkClientId } from '@metamask/network-controller';
3
import { v4 as random } from 'uuid';
4
5
-// eslint-disable-next-line @typescript-eslint/ban-types
6
-type Constructor = new (...args: any[]) => {};
+// Mixin classes require a constructor with an `...any[]` parameter
+// See TS2545
7
+type Constructor = new (...args: any[]) => object;
8
9
/**
10
* PollingControllerMixin
0 commit comments