feat: update typescript version

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2021-12-26 01:21:06 +08:00
parent 72173b4778
commit 5ed61829e1
68 changed files with 234 additions and 161 deletions

View File

@ -30,6 +30,6 @@
"@javatypes/spring-rabbit": "^0.0.3",
"reflect-metadata": "^0.1.13",
"rimraf": "^3.0.2",
"typescript": "^4.3.5"
"typescript": "^4.5.3"
}
}

View File

@ -15,7 +15,7 @@ export abstract class ChannelAwareMessageListenerAdapter<T = any> {
if (message.getMessageProperties().getContentType() == MessageProperties.CONTENT_TYPE_JSON) {
content = JSON.parse(content)
}
} catch (error) {
} catch (error: any) {
if (manual) {
channel.basicReject(message.getMessageProperties().getDeliveryTag(), true)
} else {
@ -42,7 +42,7 @@ export abstract class ChannelAwareMessageListenerAdapter<T = any> {
} else {
channel.basicNack(deliveryTag, false, true)
}
} catch (error) {
} catch (error: any) {
channel.basicReject(deliveryTag, this.onError(error, message, channel))
}
}