recurly-client-node
recurly-client-node copied to clipboard
Missing type definitions for cast method
Describe the bug
I am trying to cast on subscription recurly.Subscription.cast(...)
but getting following error:
Property 'cast' does not exist on type 'typeof Subscription'.
Expected behavior
Should be no typescript errors
Your Environment
3.18.0
Thank you for creating an issue, @cajoy.
This cast
method is intended to be an internal method for casting an API response into a Resource
. There shouldn't be any need to invoke it directly. What is your use case for making use of the cast
method directly?
Why using it for testing.
I see your point. If it meant to be internal then we can do something like
(recurly.Subscription as any).cast(...)
But would be better if still can be exposed via interface