Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
e81b248181 | |||
d92f0fb2e2 | |||
b858f9f711 |
2
package-lock.json
generated
2
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@apiglobal/typedrequest",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.17",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@apiglobal/typedrequest",
|
||||
"version": "1.0.15",
|
||||
"version": "1.0.17",
|
||||
"private": false,
|
||||
"description": "make typed requests towards apis",
|
||||
"main": "dist/index.js",
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user