feat(router-phase16): Mount time-entry-templates route [tsc:fail]

This commit is contained in:
Dennis (via Claude+Gemma) 2026-05-23 07:17:23 +02:00
parent fb3441cb5a
commit a3452bda75
3 changed files with 22 additions and 2 deletions

View File

@ -1,12 +1,13 @@
{
"completed_features": [],
"current_feature": "api-client-phase16",
"current_feature": "router-phase16",
"started_at": "2026-05-23T07:08:48.804883",
"attempted_features": [
"pinned-customers",
"smart-suggestions",
"recent-projects-quick-access",
"time-entry-templates",
"dark-mode-improvements"
"dark-mode-improvements",
"api-client-phase16"
]
}

View File

@ -1992,3 +1992,20 @@ src/index.ts(27,25): error TS2769: No overload matches this call.
Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTy
- `07:17:07` **INFO** Committed feature api-client-phase16
- `07:17:07` **INFO** Pushed: rc=0
## Phase-3 Feature: router-phase16 (2026-05-23 07:17:07)
- `07:17:07` **INFO** Description: Mount time-entry-templates route
- `07:17:07` **INFO** Generating apps/api/src/routes/index.ts (ERWEITERT — füge timeEntryTemplateRoutes ('/api/time-entry-templates')…)
- `07:17:21` **INFO** wrote 1823 chars in 14.3s (attempt 1)
- `07:17:21` **INFO** Running tsc --noEmit on api…
- `07:17:23` **WARN** tsc errors:
src/index.ts(27,25): error TS2769: No overload matches this call.
Overload 1 of 3, '(plugin: FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginCallback<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProvider>, opts: { ...; }, done: (err?: Error | undefined) => void): void'.
Overload 2 of 3, '(plugin: FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>, opts?: FastifyRegisterOptions<...> | undefined): FastifyInstance<...> & PromiseLike<...>', gave the following error.
Argument of type 'Promise<FastifyMultipartPlugin>' is not assignable to parameter of type 'FastifyPluginAsync<{ limits: { fileSize: number; }; }, RawServerDefault, FastifyTypeProvider, FastifyBaseLogger>'.
Type 'Promise<FastifyMultipartPlugin>' provides no match for the signature '(instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTy

View File

@ -4,6 +4,7 @@ import customerRoutes from "./customers"
import projectRoutes from "./projects"
import projectTemplateRoutes from "./project-templates"
import timeEntryRoutes from "./time-entries"
import timeEntryTemplateRoutes from "./time-entry-templates"
import userRoutes from "./users"
import settingsRoutes from "./settings"
import auditLogRoutes from "./audit-log"
@ -18,6 +19,7 @@ import notificationRoutes from "./notifications"
export async function setupRoutes(server: FastifyInstance) {
server.register(authRoutes, { prefix: "/api/auth" })
server.register(timeEntryRoutes, { prefix: "/api/time-entries" })
server.register(timeEntryTemplateRoutes, { prefix: "/api/time-entry-templates" })
server.register(customerRoutes, { prefix: "/api/customers" })
server.register(projectRoutes, { prefix: "/api/projects" })
server.register(projectTemplateRoutes, { prefix: "/api/project-templates" })