mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
feat: fetch remote i18n
This commit is contained in:
10
api/src/index.d.ts
vendored
10
api/src/index.d.ts
vendored
@@ -9,9 +9,9 @@
|
||||
import 'mongoose';
|
||||
import { SubscriberStub } from './chat/schemas/subscriber.schema';
|
||||
import {
|
||||
WithoutGenericAny,
|
||||
RecursivePartial,
|
||||
ObjectWithNestedKeys,
|
||||
RecursivePartial,
|
||||
WithoutGenericAny,
|
||||
} from './utils/types/filter.types';
|
||||
|
||||
type TOmitId<T> = Omit<T, 'id'>;
|
||||
@@ -63,3 +63,9 @@ declare module 'mongoose' {
|
||||
|
||||
type THydratedDocument<T> = TOmitId<HydratedDocument<T>>;
|
||||
}
|
||||
|
||||
declare global {
|
||||
type HyphenToUnderscore<S extends string> = S extends `${infer P}-${infer Q}`
|
||||
? `${P}_${HyphenToUnderscore<Q>}`
|
||||
: S;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user