mirror of
https://github.com/zoriya/flood.git
synced 2026-06-09 21:10:03 +00:00
server: services: migrate to TypeScript
This commit is contained in:
@@ -7,12 +7,22 @@ import morgan from 'morgan';
|
||||
import passport from 'passport';
|
||||
import path from 'path';
|
||||
|
||||
import type {UserInDatabase} from '@shared/types/Auth';
|
||||
|
||||
import apiRoutes from './routes/api';
|
||||
import authRoutes from './routes/auth';
|
||||
import passportConfig from './config/passport';
|
||||
import paths from '../shared/config/paths';
|
||||
import Users from './models/Users';
|
||||
|
||||
declare global {
|
||||
// eslint-disable-next-line @typescript-eslint/no-namespace
|
||||
namespace Express {
|
||||
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
||||
interface User extends UserInDatabase {}
|
||||
}
|
||||
}
|
||||
|
||||
const app = express();
|
||||
|
||||
Users.bootstrapServicesForAllUsers();
|
||||
|
||||
Reference in New Issue
Block a user