Skip to content

♻️ refactor: restructure api to follow elysia best practices - #17

Merged
sreekarnv merged 5 commits into
mainfrom
refactor/api
Jun 25, 2026
Merged

♻️ refactor: restructure api to follow elysia best practices#17
sreekarnv merged 5 commits into
mainfrom
refactor/api

Conversation

@sreekarnv

Copy link
Copy Markdown
Owner

No description provided.

sreekarnv and others added 5 commits June 25, 2026 15:20
The `apps/api/src/modules/shared.model.ts` file is imported by every
per-module model registry but was matched by the `*.mod*` pattern in
.gitignore (intended for Linux kernel build artifacts) and never
committed.

In CI this surfaces as a flood of:

  - TS2307: Cannot find module '../shared.model'
  - TS7031: Binding element 'body'|'params'|'query' implicitly has an 'any' type

because the model registry never materialises and the Elysia route
handlers lose their schema-derived context types.

Add a `!apps/api/src/modules/shared.model.ts` negation to .gitignore
and commit the file.
@sreekarnv
sreekarnv merged commit ff8abf0 into main Jun 25, 2026
2 checks passed
@sreekarnv
sreekarnv deleted the refactor/api branch June 25, 2026 11:23
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.

1 participant