#axelvaindal-events

1 messages ยท Page 1 of 1 (latest)

marsh sail
#

Hello!

#

Let me think about that one for a bit...

tight barn
#

Sure thing, here is a concrete example of the problem ๐Ÿ˜Š

marsh sail
#

Sorry for the wait - it's been really busy today

#

Are you able to cast PreviousAttributes to a Subscription?

tight barn
#

Yes, I can but pause_behavior does not exist on type Subscription right ?

#

oh

#

nevermind I was looking for pause_behavior instead of pause_collection

#

I'm a moron

#

๐Ÿ˜…

#

looks like PreviousAttributes is indeed in any case a substract of Subscription in those cases

#

so manual casting works

#

If I recall correctly there is a work in progress in the node repo to infer types directly in event (avoiding manual casting), would you happen to know how it's going internally ?

marsh sail
#

Yeah, PreviousAttributes should always be able a substract of whatever object you get back for that event

#

Let me check on that other question you have

marsh sail
#

I'm not seeing an exact match - do you happen to know if there was a github issue for this open already?

frosty vessel
#

@tight barn no plan to do this for now on previous_attributes at least. And improvements to event typing is more likely to be next year or later