mirror of
https://github.com/hexastack/hexabot
synced 2025-02-22 04:17:48 +00:00
fix(api): feedback udpates
This commit is contained in:
parent
1792b125d3
commit
46b77a32a1
5
api/src/global.d.ts
vendored
5
api/src/global.d.ts
vendored
@ -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 {};
|
||||
|
@ -26,7 +26,6 @@
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"types/**/*.d.ts",
|
||||
"src/global.d.ts",
|
||||
"src/**/*.ts",
|
||||
"src/**/*.json",
|
||||
|
8
api/types/event-emitter.d.ts
vendored
8
api/types/event-emitter.d.ts
vendored
@ -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';
|
||||
/**
|
||||
|
2
api/types/express-session.d.ts
vendored
2
api/types/express-session.d.ts
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user