Skip to content

Commit

Permalink
Merge pull request #1460 from microsoft/andrueastman/fixRegression
Browse files Browse the repository at this point in the history
fix: resolve regression in serializeMultipartBody signature.
  • Loading branch information
andrueastman authored Oct 31, 2024
2 parents 375547a + 507eff6 commit 6434567
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 6434567

Please sign in to comment.