Skip to content

refactor: merge Cradle type into container.ts, delete types.ts#11

Merged
sumdahl merged 2 commits into
mainfrom
feat/merge-cradle-into-container
May 13, 2026
Merged

refactor: merge Cradle type into container.ts, delete types.ts#11
sumdahl merged 2 commits into
mainfrom
feat/merge-cradle-into-container

Conversation

@sumdahl

@sumdahl sumdahl commented May 13, 2026

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 13, 2026 04:40

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the DI typing setup by moving the Cradle interface into the Awilix container module and deleting the standalone types.ts, keeping DI type definitions co-located with registration.

Changes:

  • Deleted src/server/infrastructure/di/types.ts (previous home of the Cradle interface).
  • Inlined Cradle into src/server/infrastructure/di/container.ts and replaced the old import.
  • Adjusted imports and formatting in container.ts accordingly.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/server/infrastructure/di/types.ts Removed now-redundant Cradle type definition file.
src/server/infrastructure/di/container.ts Defines Cradle locally and updates DI container imports/registration formatting.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +4
import { Redis } from "ioredis";
import { db, DB } from "../db";
# Conflicts:
#	src/server/infrastructure/di/container.ts
#	src/server/infrastructure/di/types.ts
@sumdahl
sumdahl merged commit 7795536 into main May 13, 2026
1 check passed
@sumdahl
sumdahl deleted the feat/merge-cradle-into-container branch May 13, 2026 04:48
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