fix(api): feedback udpates

This commit is contained in:
yassinedorbozgithub 2024-10-31 19:08:30 +01:00
parent 1792b125d3
commit 46b77a32a1
4 changed files with 11 additions and 5 deletions

5
api/src/global.d.ts vendored
View File

@ -6,6 +6,9 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/
import '../types/event-emitter';
import '../types/express-session';
declare global {
type HyphenToUnderscore<S extends string> = S extends `${infer P}-${infer Q}`
? `${P}_${HyphenToUnderscore<Q>}`
@ -13,4 +16,4 @@ declare global {
}
// eslint-disable-next-line prettier/prettier
export { };
export {};

View File

@ -26,7 +26,6 @@
}
},
"include": [
"types/**/*.d.ts",
"src/global.d.ts",
"src/**/*.ts",
"src/**/*.json",

View File

@ -8,7 +8,12 @@
import { type OnEventOptions } from '@nestjs/event-emitter/dist/interfaces';
import type { Listener, OnOptions } from 'eventemitter2';
import type { Document, Query } from 'mongoose';
import type {
Document,
Query,
TFilterQuery,
THydratedDocument,
} from 'mongoose';
import { type Socket } from 'socket.io';
import { type BotStats } from '@/analytics/schemas/bot-stats.schema';
@ -44,7 +49,6 @@ import { type Permission } from '@/user/schemas/permission.schema';
import { type Role } from '@/user/schemas/role.schema';
import { type User } from '@/user/schemas/user.schema';
import { EHook, type DeleteResult } from '@/utils/generics/base-repository';
import { TFilterQuery, THydratedDocument } from '@/utils/types/filter.types';
import '@nestjs/event-emitter';
/**

View File

@ -6,7 +6,7 @@
* 2. All derivative works must include clear attribution to the original creator and software, Hexastack and Hexabot, in a prominent location (e.g., in the software's "About" section, documentation, and README file).
*/
import { SubscriberStub } from './chat/schemas/subscriber.schema';
import { SubscriberStub } from '@/chat/schemas/subscriber.schema';
declare module 'express-session' {
interface SessionUser {