mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-22 01:25:00 +02:00
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user