Add all repos
This commit is contained in:
parent
faa12c60bc
commit
8a91c9b89b
369 changed files with 29047 additions and 28 deletions
27
metamigo-api/app/types/index.ts
Normal file
27
metamigo-api/app/types/index.ts
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
import type { IMain } from "pg-promise";
|
||||
import type { ISettingsService } from "../services/settings";
|
||||
import type WhatsappService from "../services/whatsapp";
|
||||
import type SignaldService from "../services/signald";
|
||||
import type { IAppConfig } from "../../config";
|
||||
import type { AppDatabase } from "db";
|
||||
|
||||
// add your service interfaces here
|
||||
interface AppServices {
|
||||
settingsService: ISettingsService;
|
||||
whatsappService: WhatsappService;
|
||||
signaldService: SignaldService;
|
||||
}
|
||||
|
||||
// extend the hapi types with our services and config
|
||||
declare module "@hapi/hapi" {
|
||||
export interface Request {
|
||||
services(): AppServices;
|
||||
db(): AppDatabase;
|
||||
pgp: IMain;
|
||||
}
|
||||
export interface Server {
|
||||
config(): IAppConfig;
|
||||
db(): AppDatabase;
|
||||
pgp: IMain;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue