@@ -20,6 +20,7 @@ export class MiddlewareControl {
2020 * @private
2121 * A member holding map of MiddlewareOptions
2222 */
23+ // tslint:disable-next-line:ban-types
2324 private middlewareOptions : Map < Function , MiddlewareOptions > ;
2425
2526 /**
@@ -30,6 +31,7 @@ export class MiddlewareControl {
3031 * @returns The instance of MiddlewareControl
3132 */
3233 public constructor ( middlewareOptions : MiddlewareOptions [ ] = [ ] ) {
34+ // tslint:disable-next-line:ban-types
3335 this . middlewareOptions = new Map < Function , MiddlewareOptions > ( ) ;
3436 for ( const option of middlewareOptions ) {
3537 const fn = option . constructor ;
@@ -43,6 +45,7 @@ export class MiddlewareControl {
4345 * @param {string } name - The class name of the strongly typed option class
4446 * @returns The middleware option
4547 */
48+ // tslint:disable-next-line:ban-types
4649 public getMiddlewareOptions ( fn : Function ) : MiddlewareOptions {
4750 return this . middlewareOptions . get ( fn ) ;
4851 }
@@ -54,6 +57,7 @@ export class MiddlewareControl {
5457 * @param {MiddlewareOptions } option - The strongly typed middleware option
5558 * @returns nothing
5659 */
60+ // tslint:disable-next-line:ban-types
5761 public setMiddlewareOptions ( fn : Function , option : MiddlewareOptions ) : void {
5862 this . middlewareOptions . set ( fn , option ) ;
5963 }
0 commit comments