Skip to content

Commit

Permalink
fix: resolve regression in serializeMultipartBody signature.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Oct 31, 2024
1 parent 375547a commit 507eff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/abstractions/src/multipartBody.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ interface MultipartEntry {
serializationCallback?: ModelSerializerFunction<Parsable>;
}

export const serializeMultipartBody = (writer: SerializationWriter, multipartBody: Partial<MultipartBody> = new MultipartBody()): void => {
export const serializeMultipartBody = (writer: SerializationWriter, multipartBody: Partial<MultipartBody> | undefined | null = new MultipartBody()): void => {
if (!writer) {
throw new Error("writer cannot be undefined");
}
Expand Down

0 comments on commit 507eff6

Please sign in to comment.