liebichw | 2025-01-27 14:47:28 UTC | #1
When trying to update a typescript project to use the PSDK 213.0.0, I get following error during compilation:
Error: node_modules/purecloud-platform-client-v2/index.d.ts:125:39 - error TS2552: Cannot find name 'RequestOptions'. Did you mean 'HttpRequestOptions'?
And in fact, editing this type file (index.d.ts) shows that the method toAxiosConfig of DefaultHttpClient uses a parameter of type RequestOptions - this index.d.ts declares only the class HttpRequestOptions, however.
For pure JavaScript development this is not visible, but it completely breaks typescript development - this should be fixed.
Jerome.Saint-Marc | 2025-01-27 15:07:31 UTC | #2
Thanks for the notice. A typo I assume. I'll notify the team to fix it.
Regards,
liebichw | 2025-01-27 15:18:42 UTC | #3
The correct type for that method parameter would be HttpRequestOptions, as it is defined above.
Jerome.Saint-Marc | 2025-01-27 15:19:04 UTC | #4
Yes. I have seen that.
Jerome.Saint-Marc | 2025-01-27 16:37:09 UTC | #5
It should be fixed in version 213.1.0
Regards,
liebichw | 2025-01-28 10:14:10 UTC | #6
OK, thanks. Will then wait for that version.
Jerome.Saint-Marc | 2025-01-28 13:46:25 UTC | #7
This version is already available - released yesterday.
Regards,
liebichw | 2025-01-28 14:06:51 UTC | #8
OK, that version compiles and works right - thanks, this can be closed now! Regards, Wolfgang
system | 2025-02-27 14:07:22 UTC | #9
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 31422