fix(core): update

This commit is contained in:
2024-06-19 17:53:10 +02:00
parent 09e8b8b94c
commit 2ad3da85a9
6 changed files with 48 additions and 17 deletions

View File

@@ -1,11 +1,7 @@
import * as plugins from './npmextra.plugins.js';
import * as paths from './npmextra.paths.js';
import { KeyValueStore } from './npmextra.classes.keyvaluestore.js';
import { env } from 'process';
export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends object ? DeepPartial<T[P]> : T[P];
};
export interface IAppDataOptions<T = any> {
dirPath?: string;
@@ -19,9 +15,7 @@ export interface IAppDataOptions<T = any> {
/**
* kvStoreKey: 'MY_ENV_VAR'
*/
envMapping?: DeepPartial<{
[key in keyof T]: string | object;
}>;
envMapping?: plugins.tsclass.typeFest.PartialDeep<T>
}
export class AppData<T = any> {