feat(router-phase11): routes/index.ts mount reports [tsc:fail]
This commit is contained in:
parent
7486e687da
commit
6c8743dcdb
@ -1,12 +1,13 @@
|
||||
{
|
||||
"completed_features": [],
|
||||
"current_feature": "api-client-phase11",
|
||||
"current_feature": "router-phase11",
|
||||
"started_at": "2026-05-23T06:21:46.924268",
|
||||
"attempted_features": [
|
||||
"onboarding-tour",
|
||||
"time-entry-csv-import",
|
||||
"customer-archive",
|
||||
"project-cloning",
|
||||
"pdf-export-stub"
|
||||
"pdf-export-stub",
|
||||
"api-client-phase11"
|
||||
]
|
||||
}
|
||||
@ -1416,3 +1416,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
|
||||
- `06:31:22` **INFO** Committed feature api-client-phase11
|
||||
- `06:31:22` **INFO** Pushed: rc=0
|
||||
|
||||
## Phase-3 Feature: router-phase11 (2026-05-23 06:31:22)
|
||||
|
||||
- `06:31:22` **INFO** Description: routes/index.ts mount reports
|
||||
- `06:31:22` **INFO** Generating apps/api/src/routes/index.ts (ERWEITERT — füge reportsRoutes ('/api/reports'). Behalte alles.…)
|
||||
- `06:31:33` **INFO** wrote 1345 chars in 10.6s (attempt 1)
|
||||
- `06:31:33` **INFO** Running tsc --noEmit on api…
|
||||
- `06:31:34` **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
|
||||
|
||||
@ -10,6 +10,7 @@ import auditLogRoutes from "./audit-log"
|
||||
import documentsRoutes from "./documents"
|
||||
import searchRoutes from "./search"
|
||||
import webhookRoutes from "./webhooks"
|
||||
import reportsRoutes from "./reports"
|
||||
|
||||
export async function setupRoutes(server: FastifyInstance) {
|
||||
server.register(authRoutes, { prefix: "/api/auth" })
|
||||
@ -23,4 +24,5 @@ export async function setupRoutes(server: FastifyInstance) {
|
||||
server.register(documentsRoutes, { prefix: "/api/documents" })
|
||||
server.register(searchRoutes, { prefix: "/api/search" })
|
||||
server.register(webhookRoutes, { prefix: "/api/webhooks" })
|
||||
server.register(reportsRoutes, { prefix: "/api/reports" })
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user