In libs/until-destroy/src/lib/until-destroy.ts in line 17 you are checking for the properties to be of type Subscription from the rxjs package.
There are also other types of suscriptions, which also support unsubscribing, but which would not pass that check.
i.e. when dealing with aws graphql subscriptions you get an ZenObservable.Subscription.
Currently it's not possible to unsubscribe that type of subscriptions with your decorator.
Maybe just checking for the presence of the .unsubscribe function would be sufficient at that point?
In
libs/until-destroy/src/lib/until-destroy.ts
in line 17 you are checking for the properties to be of typeSubscription
from the rxjs package. There are also other types of suscriptions, which also support unsubscribing, but which would not pass that check. i.e. when dealing with aws graphql subscriptions you get anZenObservable.Subscription
. Currently it's not possible to unsubscribe that type of subscriptions with your decorator.Maybe just checking for the presence of the
.unsubscribe
function would be sufficient at that point?