diff --git a/package.json b/package.json index 6f07a567..99c02082 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ }, "packageManager": "pnpm@8.14.3", "engines": { - "node": "20", "pnpm": "8" } } diff --git a/packages/types/types/response.ts b/packages/types/types/response.ts index 31098fd2..7cbf0df5 100644 --- a/packages/types/types/response.ts +++ b/packages/types/types/response.ts @@ -14,7 +14,6 @@ export type BaseResponse = { * The status code of the request. */ statusCode: number; - success: boolean; }; /** @@ -26,6 +25,8 @@ export type Response = BaseResponse & { * The payload returned by the REST API. */ payload: T; + + success: true; }; /** @@ -40,6 +41,8 @@ export type ErrorResponse = BaseResponse & { * The detailed error message. */ message: string; + + success: false; }; /**