diff --git a/libs/rest/src/RestManager.ts b/libs/rest/src/RestManager.ts index 650a903..55ecc9f 100644 --- a/libs/rest/src/RestManager.ts +++ b/libs/rest/src/RestManager.ts @@ -195,7 +195,7 @@ export class RestManager extends EventEmitter { * @param options Other options for the request */ /* istanbul ignore next */ - public put(path: string, options: { data: D; reason?: string }): Promise { + public put(path: string, options?: { data?: D; reason?: string }): Promise { return this.make({ path, method: 'put', ...options }); } diff --git a/libs/routers/src/IRouter.ts b/libs/routers/src/IRouter.ts index 61213aa..b41b072 100644 --- a/libs/routers/src/IRouter.ts +++ b/libs/routers/src/IRouter.ts @@ -4,6 +4,6 @@ export type IRouter = { get(options?: { query?: Q }): Promise; delete(options?: { data?: D; reason?: string }): Promise; patch(options: { data: D; reason?: string }): Promise; - put(options: { data: D; reason?: string }): Promise; + put(options?: { data?: D; reason?: string }): Promise; post(options: { data: D; reason?: string; files?: File[] }): Promise; } & { [key: string]: IRouter };