From 507eff696b0762d880438d2029baeca005263411 Mon Sep 17 00:00:00 2001 From: Andrew Omondi Date: Thu, 31 Oct 2024 12:33:40 +0300 Subject: [PATCH] fix: resolve regression in serializeMultipartBody signature. --- packages/abstractions/src/multipartBody.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/abstractions/src/multipartBody.ts b/packages/abstractions/src/multipartBody.ts index 6b7ea83fd..1f72778a9 100644 --- a/packages/abstractions/src/multipartBody.ts +++ b/packages/abstractions/src/multipartBody.ts @@ -93,7 +93,7 @@ interface MultipartEntry { serializationCallback?: ModelSerializerFunction; } -export const serializeMultipartBody = (writer: SerializationWriter, multipartBody: Partial = new MultipartBody()): void => { +export const serializeMultipartBody = (writer: SerializationWriter, multipartBody: Partial | undefined | null = new MultipartBody()): void => { if (!writer) { throw new Error("writer cannot be undefined"); }