@@ -19,12 +19,10 @@ export class Projects {
1919 * Returns all projects accessible by the API key.
2020 * @param {string } endpoint Custom API endpoint
2121 *
22- * @returns {Promise<ProjectResponse | ErrorResponse > }
22+ * @returns {Promise<ProjectResponse> }
2323 */
2424
25- async list (
26- endpoint = "v1/projects"
27- ) : Promise < ProjectResponse | ErrorResponse > {
25+ async list ( endpoint = "v1/projects" ) : Promise < ProjectResponse > {
2826 return this . _request (
2927 "GET" ,
3028 this . _credentials ,
@@ -39,12 +37,9 @@ export class Projects {
3937 * @param {string } projectId Unique identifier of the project
4038 * @param {string } endpoint Custom API endpoint
4139 *
42- * @returns {Promise<Project | ErrorResponse > }
40+ * @returns {Promise<Project> }
4341 */
44- async get (
45- projectId : string ,
46- endpoint = "v1/projects"
47- ) : Promise < Project | ErrorResponse > {
42+ async get ( projectId : string , endpoint = "v1/projects" ) : Promise < Project > {
4843 return this . _request (
4944 "GET" ,
5045 this . _credentials ,
@@ -60,13 +55,13 @@ export class Projects {
6055 * @param {ProjectPatchRequest } payload Details to change as an object
6156 * @param {string } endpoint Custom API endpoint
6257 *
63- * @returns {Promise<ProjectPatchResponse | ErrorResponse > }
58+ * @returns {Promise<ProjectPatchResponse> }
6459 */
6560 async update (
6661 project : string | Project ,
6762 payload : ProjectPatchRequest ,
6863 endpoint = "v1/projects"
69- ) : Promise < ProjectPatchResponse | ErrorResponse > {
64+ ) : Promise < ProjectPatchResponse > {
7065 const projectObj = project as Project ;
7166 let projectId = project as string ;
7267
@@ -89,7 +84,7 @@ export class Projects {
8984 * @param {string } projectId Unique identifier of the project
9085 * @param {string } endpoint Custom API endpoint
9186 *
92- * @returns {Promise<Message | ErrorResponse> }
87+ * @returns {Promise<void | ErrorResponse> }
9388 */
9489 async delete (
9590 projectId : string ,
0 commit comments