-
Notifications
You must be signed in to change notification settings - Fork 43
[SDK] Fix typescript types in return statements #3575
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
Conversation
… and WorkerUtils to allow null values - Improve error handling in all references
|
The latest updates on your projects. Learn more about Vercel for GitHub.
2 Skipped Deployments
|
dnechay
left a comment
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.
lgtm overall, some minor comments
Could you please also export error classes from sdk as mentioned in the issue? It would help to simplify some error checks for SDK consumers
...cle/server/src/modules/escrow-completion/results-processing/escrow-results-processor.spec.ts
Outdated
Show resolved
Hide resolved
...ges/apps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.ts
Outdated
Show resolved
Hide resolved
...pps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.spec.ts
Outdated
Show resolved
Hide resolved
...pps/reputation-oracle/server/src/modules/escrow-completion/escrow-completion.service.spec.ts
Outdated
Show resolved
Hide resolved
packages/apps/reputation-oracle/server/src/modules/abuse/abuse.service.ts
Outdated
Show resolved
Hide resolved
packages/apps/reputation-oracle/server/src/modules/abuse/abuse.service.spec.ts
Outdated
Show resolved
Hide resolved
packages/apps/reputation-oracle/server/src/common/guards/signature.auth.ts
Outdated
Show resolved
Hide resolved
packages/apps/fortune/recording-oracle/src/common/guards/signature.auth.ts
Show resolved
Hide resolved
packages/apps/fortune/exchange-oracle/server/src/common/guards/signature.auth.ts
Show resolved
Hide resolved
packages/apps/fortune/exchange-oracle/server/src/modules/webhook/webhook.service.spec.ts
Outdated
Show resolved
Hide resolved
- Remove unused castings for null values - Export error classes in SDK
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.
LGTM codewise
Please add changesets to this PR as per new SDK release flow
I would also recommend to apply next strategy for any SDK-related PR:
- Make necessary changes
- Go through review cycles
- Get an "approval" comment
- Generate changesets and docs once all changes approved
This way you won't have to re-generate docs in review cycle + they won't create noise in "change files" view for PR reviewer, wdyt?
Or maybe even generate docs only in release PR?
packages/apps/reputation-oracle/server/src/common/guards/signature.auth.ts
Outdated
Show resolved
Hide resolved
packages/apps/reputation-oracle/server/src/common/guards/signature.auth.ts
Outdated
Show resolved
Hide resolved
packages/apps/reputation-oracle/server/src/common/guards/signature.auth.ts
Outdated
Show resolved
Hide resolved
packages/apps/reputation-oracle/server/src/common/guards/signature.auth.spec.ts
Outdated
Show resolved
Hide resolved
…ls, EscrowStatus, and various type aliases - Adjust null handling in SignatureAuthGuard - Generated new changeset
|
Thanks for the suggestion @dnechay, will apply it. Pushed new changes with changesets |
dnechay
left a comment
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.
LGTM
One non-blocking suggestion
Issue tracking
#3512
Context behind the change
How has this been tested?
Deployed fortune locally and checked that the whole fortune flow works
Release plan
Deploy new typescript SDK version
Potential risks; What to monitor; Rollback plan
None