Test the types for all the controllers and bootstrapping.
This commit is contained in:
parent
818151b0b0
commit
181b9cf375
@ -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;
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user