Skip to content

fix: replace Promise<any> with SuccessResponse in line mutations#835

Merged
2ndalpha merged 1 commit intomasterfrom
fix/line-promise-any-return-types
Mar 30, 2026
Merged

fix: replace Promise<any> with SuccessResponse in line mutations#835
2ndalpha merged 1 commit intomasterfrom
fix/line-promise-any-return-types

Conversation

@2ndalpha
Copy link
Copy Markdown
Member

Summary

  • Replace all 12 occurrences of Promise<any> (6 return types + 6 type assertions) in line.ts with Promise<SuccessResponse>
  • Matches the existing pattern used in user.ts for similar API mutations
  • Type-only change, no runtime behavior affected

Test plan

  • yarn build succeeds
  • All 294 tests pass

…ions

All six line mutation functions (update, enable, disable, archive,
unarchive, deleteLine) returned Promise<any>, undermining type safety
for consumers. Replaced with Promise<SuccessResponse> to match the
existing pattern used in user.ts.
@2ndalpha 2ndalpha requested a review from KonradPaluch March 26, 2026 13:50
@2ndalpha 2ndalpha added this pull request to the merge queue Mar 30, 2026
Merged via the queue into master with commit da1858b Mar 30, 2026
10 checks passed
@2ndalpha 2ndalpha deleted the fix/line-promise-any-return-types branch March 30, 2026 05:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants