@@ -20,6 +20,7 @@ export class MiddlewareControl {
20
20
* @private
21
21
* A member holding map of MiddlewareOptions
22
22
*/
23
+ // tslint:disable-next-line:ban-types
23
24
private middlewareOptions : Map < Function , MiddlewareOptions > ;
24
25
25
26
/**
@@ -30,6 +31,7 @@ export class MiddlewareControl {
30
31
* @returns The instance of MiddlewareControl
31
32
*/
32
33
public constructor ( middlewareOptions : MiddlewareOptions [ ] = [ ] ) {
34
+ // tslint:disable-next-line:ban-types
33
35
this . middlewareOptions = new Map < Function , MiddlewareOptions > ( ) ;
34
36
for ( const option of middlewareOptions ) {
35
37
const fn = option . constructor ;
@@ -43,6 +45,7 @@ export class MiddlewareControl {
43
45
* @param {string } name - The class name of the strongly typed option class
44
46
* @returns The middleware option
45
47
*/
48
+ // tslint:disable-next-line:ban-types
46
49
public getMiddlewareOptions ( fn : Function ) : MiddlewareOptions {
47
50
return this . middlewareOptions . get ( fn ) ;
48
51
}
@@ -54,6 +57,7 @@ export class MiddlewareControl {
54
57
* @param {MiddlewareOptions } option - The strongly typed middleware option
55
58
* @returns nothing
56
59
*/
60
+ // tslint:disable-next-line:ban-types
57
61
public setMiddlewareOptions ( fn : Function , option : MiddlewareOptions ) : void {
58
62
this . middlewareOptions . set ( fn , option ) ;
59
63
}
0 commit comments