Test the types for all the controllers and bootstrapping.

This commit is contained in:
Dave Smith-Hayes 2024-04-08 22:23:20 -04:00
parent 818151b0b0
commit 181b9cf375
2 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@ import type {
Request, Request,
Response Response
} from "express"; } from "express";
import type { Pool } from 'mariadb';
import type { Controller } from '@slovo/api/controller'; import type { Controller } from '@slovo/api/controller';
import { UserRepository } from '@slovo/domain/repository/user-repository'; import { UserRepository } from '@slovo/domain/repository/user-repository';
import type { Pool } from 'mariadb';
export class UserController implements Controller { export class UserController implements Controller {
private userRepository: UserRepository; private userRepository: UserRepository;

View File

@ -3,7 +3,7 @@ import express, {
type Request, type Request,
type Response type Response
} from "express"; } from "express";
import { connectionPool } from '@slovo/infrastructure/connection-pool'; import connectionPool from '@slovo/infrastructure/connection-pool';
const server: Express = express(); const server: Express = express();