Cast to help typescript

This commit is contained in:
Jackson Harper 2024-05-28 22:31:09 +08:00
parent 86ff1eddae
commit e4bc3c72fa

View file

@ -267,7 +267,7 @@ const SubscriptionSourceHoverContent = (
switch (sourceType) {
case 'RSS':
case 'NEWSLETTER':
return sourceType
return sourceType as SubscriptionType
default:
return undefined
}