-
Notifications
You must be signed in to change notification settings - Fork 17
Fix @signalwire/client TS types #1259
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
9ea72e7
6ec6c27
e60a1cf
89966d6
5af7876
5d43d25
f113e96
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,8 @@ | |
"dependencies": { | ||
"@signalwire/core": "4.3.0", | ||
"@signalwire/webrtc": "3.14.0", | ||
"jwt-decode": "^3.1.2" | ||
"jwt-decode": "^3.1.2", | ||
"ts-toolbelt": "^9.6.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @LittorWired actually, it's imported in the code, so it's not just a dev dependency. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. OK thanks just wanted to double check |
||
}, | ||
"devDependencies": { | ||
"@types/object-path": "^0.11.4" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please not do this? We always try not to install any packages on the SDK.
Also, even with this lib addition, I see in this PR copilot has highlighted issues with the TS usage. Maybe we need to stop adding these quick fixes and think hard and understand the root cause?
We can take @LittorWired's help as well and understand the TS problems that you have been facing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was from a @LittorWired suggestion already :-)
#1257 (comment)
Since we're heavily relying on Prettify/Compute on this SDK package, I agree that using a well-tested library is better in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it solves one problem but causes two new ones, is it really worth it?
Also, the dependency should be a devDependency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was trying to point out in that comment that Prettify/Compute might require a more well-battle-tested utility type if we really want to improve the DX without type "bugs".
Maybe the prettify/compute is not needed at the moment, but to be honest I don't yet fully understand the full context around the root of the issue. I gather it is around type aliases?