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<
292292 static mixin (
293293 emitteryPropertyName : string | symbol ,
294294 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
296296
297297 /**
298298 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>;
279279Emittery . mixin ( 'emittery' ) ( class {
280280 test ( ) { }
281281} ) ;
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