fix(core): update

This commit is contained in:
Philipp Kunz 2019-08-26 17:08:09 +02:00
parent 50cc5fdbe6
commit b858f9f711

View File

@ -16,7 +16,7 @@ export class TypedRouter {
* adds the handler to the routing map
* @param handlerArg
*/
public addTypedHandler(handlerArg: TypedHandler<plugins.typedRequestInterfaces.ITypedRequest>) {
public addTypedHandler<T extends plugins.typedRequestInterfaces.ITypedRequest>(handlerArg: TypedHandler<T>) {
this.handlerMap.add(handlerArg);
}