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"); }