#When passing an Interaction Object into a synchronous function it seems to be registering as an any

1 messages · Page 1 of 1 (latest)

dawn vine
#

mainly, it should, since you didn't typed the type

vague crest
#

type the what?

#

i'm not using typescript

dawn vine
#

have you used jsdoc?

#

how is your ide supposed to infer the type?

vague crest
#

codesense. but it's not inferring the type which is the issue, it's that when i run the code it doesn't pick up on the Object type

#

which it should do regardless

dawn vine
#

so i guess you expect to infer the type from the way you call the function, or runtime analysis?

vague crest
#

figured it out

dawn vine