13 lines
389 B
TypeScript
13 lines
389 B
TypeScript
import type { RequestHandler } from 'express';
|
|
import type { PrismaClient } from '@prisma/client';
|
|
|
|
/**
|
|
* Application dependencies, created once in the composition root (index.ts)
|
|
* and passed explicitly to app, routes, middleware and services.
|
|
*/
|
|
export interface AppDeps {
|
|
prisma: PrismaClient;
|
|
/** Nadpisanie globalnego rate limitera (testy). */
|
|
apiLimiter?: RequestHandler;
|
|
}
|