Skip to content

Commit ae7372d

Browse files
shanejonasGudahtt
andauthored
Update packages/polling-controller/src/PollingController.ts
Co-authored-by: Mark Stacey <[email protected]>
1 parent 5696702 commit ae7372d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/polling-controller/src/PollingController.ts

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { BaseController, BaseControllerV2 } from '@metamask/base-controller';
22
import type { NetworkClientId } from '@metamask/network-controller';
33
import { v4 as random } from 'uuid';
44

5-
// eslint-disable-next-line @typescript-eslint/ban-types
6-
type Constructor = new (...args: any[]) => {};
5+
// Mixin classes require a constructor with an `...any[]` parameter
6+
// See TS2545
7+
type Constructor = new (...args: any[]) => object;
78

89
/**
910
* PollingControllerMixin

0 commit comments

Comments
 (0)