refactor Request

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov
2021-08-04 10:05:05 +02:00
parent 1860280e49
commit df797666ec
2 changed files with 3 additions and 9 deletions
+1 -6
View File
@@ -24,15 +24,10 @@ export type ReqId = string | number
/**
* @public
*/
export class Request<P extends any[], M extends string = string> {
export interface Request<P extends any[], M extends string = string> {
id?: ReqId
method: M
params: P
constructor (method: M, params: P, id?: ReqId) {
this.method = method
this.params = params
}
}
/**