Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"create-docs:process": "node scripts/mintlify-post-processing/file-processing/file-processing.js"
},
"dependencies": {
"axios": "^1.18.1",
"axios": "^1.20.0",
"partysocket": "^0.0.23",
"socket.io-client": "^4.8.3",
"uuid": "^13.0.2"
Expand Down
6 changes: 3 additions & 3 deletions src/modules/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,17 +158,17 @@ function createEntityHandler<T = any>(

// Get entity by ID
async get(id: string): Promise<T> {
return axios.get(`${baseURL}/${id}`);
return axios.get(`${baseURL}/${id}`) as Promise<T>;
},

// Create new entity
async create(data: Partial<T>): Promise<T> {
return axios.post(baseURL, data);
return axios.post(baseURL, data) as Promise<T>;
},

// Update entity by ID
async update(id: string, data: Partial<T>): Promise<T> {
return axios.put(`${baseURL}/${id}`, data);
return axios.put(`${baseURL}/${id}`, data) as Promise<T>;
},

// Delete entity by ID
Expand Down
Loading