Skip to content

fix: add Express type augmentation for stellarAddress#379

Merged
thecodedcoder merged 1 commit intoThinkLikeAFounder:mainfrom
0xDeon:fix/express-types
Mar 30, 2026
Merged

fix: add Express type augmentation for stellarAddress#379
thecodedcoder merged 1 commit intoThinkLikeAFounder:mainfrom
0xDeon:fix/express-types

Conversation

@0xDeon
Copy link
Copy Markdown
Contributor

@0xDeon 0xDeon commented Mar 28, 2026

Closes #336

Changes

  • Created backend/src/types/express.d.ts declaring stellarAddress?: string on Express.Request
  • Replaced all (req as any).stellarAddress usages with req.stellarAddress across:
    • middleware/auth.ts (3 occurrences)
    • routes/campaigns.ts
    • routes/publishers.ts
    • routes/auctions.ts
  • No changes to tsconfig.json needed — "include": ["src/**/*"] already picks up the types directory

@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

@0xDeon Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

- Created backend/src/types/express.d.ts to extend Express.Request
  with optional stellarAddress property
- Replaced all (req as any).stellarAddress with req.stellarAddress
  in auth.ts, campaigns.ts, publishers.ts, and auctions.ts
- tsconfig include pattern (src/**/*) already covers the types dir

Closes ThinkLikeAFounder#336
@0xDeon 0xDeon force-pushed the fix/express-types branch from e450efe to b4c847a Compare March 28, 2026 22:38
@thecodedcoder thecodedcoder merged commit 36cf4aa into ThinkLikeAFounder:main Mar 30, 2026
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.

Bug: (req as any).stellarAddress used everywhere — missing Express type augmentation

2 participants