mirror of
https://github.com/muerwre/vk-tg-bot.git
synced 2025-04-25 06:56:40 +07:00
#4 made strict type checking
This commit is contained in:
parent
01211eae0f
commit
43aa09a88b
18 changed files with 138 additions and 82 deletions
|
@ -11,10 +11,10 @@ import { Post } from "./entities/Post";
|
|||
const entities = [path.join(__dirname, "./entities/*")];
|
||||
|
||||
export class PostgresDB implements Storage {
|
||||
private connection: Connection;
|
||||
private events: Repository<Event>;
|
||||
private likes: Repository<Like>;
|
||||
private posts: Repository<Post>;
|
||||
private connection!: Connection;
|
||||
private events!: Repository<Event>;
|
||||
private likes!: Repository<Like>;
|
||||
private posts!: Repository<Post>;
|
||||
|
||||
constructor(private config: PostgresConfig) {}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue