File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
sdk/servicebus/service-bus Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 55``` ts
66
77import { AmqpAnnotatedMessage } from ' @azure/core-amqp' ;
8- import { AmqpError } from ' rhea-promise' ;
98import { delay } from ' @azure/core-amqp' ;
109import { Delivery } from ' rhea-promise' ;
1110import { HttpResponse } from ' @azure/core-http' ;
@@ -136,7 +135,7 @@ export interface GetMessageIteratorOptions extends OperationOptionsBase {
136135}
137136
138137// @public
139- export function isServiceBusError(err : Error | AmqpError | ServiceBusError ): err is ServiceBusError ;
138+ export function isServiceBusError(err : any ): err is ServiceBusError ;
140139
141140// @public
142141export interface MessageHandlers {
Original file line number Diff line number Diff line change @@ -172,8 +172,6 @@ export function translateServiceBusError(err: AmqpError | Error): ServiceBusErro
172172 *
173173 * @param err An error to check to see if it's of type ServiceBusError
174174 */
175- export function isServiceBusError (
176- err : Error | AmqpError | ServiceBusError
177- ) : err is ServiceBusError {
178- return ( err as Error | ServiceBusError ) . name === "ServiceBusError" ;
175+ export function isServiceBusError ( err : any ) : err is ServiceBusError {
176+ return err ?. name === "ServiceBusError" ;
179177}
You can’t perform that action at this time.
0 commit comments