vona-core 5.0.62 → 5.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lib/bean/type.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** bean merge: bean.instance */
|
|
2
|
+
import type { TypeRecordValues } from '../../types/utils/type.ts';
|
|
2
3
|
import type { IBeanSceneRecord } from '../decorator/interface/beanOptions.ts';
|
|
3
4
|
import type { TypeErrorsInternal } from './resource/error/errorInternal.ts';
|
|
4
5
|
export interface IBeanRecordGlobal {
|
|
@@ -23,8 +24,10 @@ export type TypeBeanScopeLocaleKeys = keyof IBeanScopeLocale;
|
|
|
23
24
|
export interface IBeanScopeErrors {
|
|
24
25
|
}
|
|
25
26
|
export type TypeBeanScopeErrorsKeys = keyof IBeanScopeErrors;
|
|
26
|
-
export type TypeScopesErrorsHelper<ModuleName extends keyof IBeanScopeErrors> = {
|
|
27
|
-
[K in keyof
|
|
27
|
+
export type TypeScopesErrorsHelper<ModuleName extends keyof IBeanScopeErrors, Errors extends IBeanScopeErrors[ModuleName]> = {
|
|
28
|
+
[K in keyof Errors as `${ModuleName}:${Errors[K]}`]: K;
|
|
28
29
|
};
|
|
29
|
-
export type
|
|
30
|
-
|
|
30
|
+
export type TypeScopesErrorCodes = TypeRecordValues<{
|
|
31
|
+
[ModuleName in keyof IBeanScopeErrors]: keyof TypeScopesErrorsHelper<ModuleName, IBeanScopeErrors[ModuleName]>;
|
|
32
|
+
}>;
|
|
33
|
+
export type TypeAllErrorCodes = TypeScopesErrorCodes | keyof TypeErrorsInternal;
|