UrielCh / proxmox-api

TypeScript Api for proxmox
56 stars 15 forks source link

custom-patch #26

Closed Pribess closed 10 months ago

Pribess commented 10 months ago

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch proxmox-api@1.0.2 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/proxmox-api/dist/esm/model.d.ts b/node_modules/proxmox-api/dist/esm/model.d.ts
index cb5cfa9..bf339f4 100644
--- a/node_modules/proxmox-api/dist/esm/model.d.ts
+++ b/node_modules/proxmox-api/dist/esm/model.d.ts
@@ -2735,7 +2735,7 @@ export declare namespace Proxmox {
         /**
          * Used memory in bytes (when type in node,qemu,lxc).
          */
-        mem?: string;
+        mem?: number;
         /**
          * Name of the resource.
          */

This issue body was partially generated by patch-package.

UrielCh commented 10 months ago

so ... maybe the type had change with the new proxmox...