MCPcopy Create free account
hub / github.com/SOS-RS/backend / constructor

Method constructor

src/utils/utils.ts:9–13  ·  view source on GitHub ↗
(statusCode: number, message: string, data?: T)

Source from the content-addressed store, hash-verified

7 private readonly respData?: T;
8
9 constructor(statusCode: number, message: string, data?: T) {
10 this.statusCode = statusCode;
11 this.message = message;
12 this.respData = data;
13 }
14
15 public get data(): { statusCode: number; message: string; data?: T } {
16 const resp = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected