File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -292,7 +292,7 @@ declare class Emittery<
292
292
static mixin (
293
293
emitteryPropertyName : string | symbol ,
294
294
methodNames ?: readonly string [ ]
295
- ) : < T extends { new ( ) : any } > ( klass : T ) => T ; // eslint-disable-line @typescript-eslint/prefer-function-type
295
+ ) : < T extends { new ( ... arguments_ : any [ ] ) : any } > ( klass : T ) => T ; // eslint-disable-line @typescript-eslint/prefer-function-type
296
296
297
297
/**
298
298
Subscribe to one or more events.
Original file line number Diff line number Diff line change @@ -279,3 +279,8 @@ type AnyListener = (eventData?: unknown) => void | Promise<void>;
279
279
Emittery . mixin ( 'emittery' ) ( class {
280
280
test ( ) { }
281
281
} ) ;
282
+
283
+ // Mixin type - arguments in constructor
284
+ Emittery . mixin ( 'emittery' ) ( class { // eslint-disable-line @typescript-eslint/no-extraneous-class
285
+ constructor ( argument : string ) { } // eslint-disable-line @typescript-eslint/no-useless-constructor
286
+ } ) ;
You can’t perform that action at this time.
0 commit comments