refactor(server): config system (#11081)

This commit is contained in:
forehalo
2025-03-27 12:32:28 +00:00
parent 7091111f85
commit 0ea38680fa
274 changed files with 7583 additions and 5841 deletions

View File

@@ -4,13 +4,26 @@ declare namespace Express {
}
}
declare type Exact<T extends { [key: string]: unknown }> = {
[K in keyof T]: T[K];
};
declare type Leaf<T> = T & { __leaf: true };
declare type NonLeaf<T> = T extends Leaf<infer V> ? V : T;
declare type DeeplyEraseLeaf<T> = T extends Leaf<infer V> ? V
:
{
[K in keyof T]: DeeplyEraseLeaf<T[K]>
}
declare type PrimitiveType =
| string
| number
| boolean
| symbol
| null
| undefined;
| undefined
declare type UnionToIntersection<T> = (
T extends any ? (x: T) => any : never
@@ -33,6 +46,10 @@ declare type DeepPartial<T> =
}
: T;
declare type DeepReadonly<T> = {
readonly [K in keyof T]: T[K] extends object ? DeepReadonly<T[K]> : T[K];
};
declare type AFFiNEModule =
| import('@nestjs/common').Type
| import('@nestjs/common').DynamicModule;