mirror of
https://github.com/hexastack/hexabot
synced 2025-06-04 03:26:22 +00:00
Merge pull request #303 from Hexastack/301-bug-move-global-types-to-globaldts-file-human-version
fix(api): move types to global.d.ts
This commit is contained in:
commit
4546e8e836
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",
|
||||
|
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