Skip to content

Commit

Permalink
fix: no cyclic dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
clabroche committed Feb 11, 2024
1 parent e29ed8c commit 496f153
Show file tree
Hide file tree
Showing 10 changed files with 274 additions and 313 deletions.
91 changes: 91 additions & 0 deletions common/typings/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,94 @@ export interface Schema {
createSchema<M extends Generic ,C extends Generic, D extends CustomFunctions<Instance<M & C,Partial<D>>>, E extends CustomFunctions<F>, F extends GeneratedClass<M & C, D, E>>(name: string, schema: M, option?: Option<C, D, E>): F
}
export type AnyObject<T = string> = Record<T, any>;


// export type FunctionPropertyNames<T> = {
// [K in keyof T]: T[K] extends Function ? K : never;
// }[keyof T];
// export type NonFunctionPropertyNames<T> = {
// [K in keyof T]: T[K] extends Function ? never : K;
// }[keyof T];
// export type NonFunctionPropertyNamesNumber<T> = {
// [K in keyof T]: T[K] extends Function ? never : K;
// }[keyof T];
// export type PartialPick<T, M extends keyof T> = Partial<Pick<T, M>>
// export type FunctionProperties<T> = PartialPick<T, FunctionPropertyNames<T>>;
// export type NonFunctionProperties<T> = PartialPick<T, NonFunctionPropertyNames<T>>;
// export type NonFunctionPropertiesNumber<T> = Modify<NonFunctionProperties<T>, { [K in keyof NonFunctionProperties<T>]: number }>
// export type NonFunctionPropertiesString<T> = Modify<NonFunctionProperties<T>, { [K in keyof NonFunctionProperties<T>]: string }>
// export type NonFunctionPropertiesBoolean<T> = Modify<NonFunctionProperties<T>, { [K in keyof NonFunctionProperties<T>]: boolean }>
// export type Modify<T, R> = Partial<Pick<T, Exclude<keyof T, keyof R>> & R>


//= ==== Root Types ==========
//= ==== Global Scripts ==========
import type {
GlobalScript as _Script,
ScriptStep as _ScriptStep,
TrackStep as _TrackStep,
} from '../../../modules/global-scripts/backend/GlobalScripts';

//= ==== Plugins ==========
import type {
PluginSM as _StackMonitorPlugin,
} from '../../../modules/plugins-loader/front/src/views';

//= ==== Leaf ==========
import type {
Leaf as _Leaf,
} from '../../../modules/documentation/backend/index';

//= ==== Npm ==========
import type {
Outdated as _Outdated,
} from '../../../modules/npm/backend/index';

//= ==== Npm ==========
import type {
OpenAiChat as _OpenAiChat,
} from '../../../modules/openai/backend';

//= ==== Fs ==========
import type {
Entry as _Entry,
NpmInfos as _NpmInfos,
} from '../../../servers/server/routes/fs';

export type {
StackFile,
StackArray,
StackObject,
StackFunction,
Environment,
StackWithPlugins as StackMonitor,
} from '../../../servers/server/models/stack';

export type {
SpawnOptions,
ServiceType as Service,
LogMessage,
Parser,
} from '../../../servers/server/models/Service';
export namespace GlobalScripts {
export type Script = _Script
export type ScriptStep = _ScriptStep
export type TrackStep = _TrackStep
}
export namespace Plugins {
export type StackMonitorPlugin<T> = _StackMonitorPlugin<T>
}
export namespace Documentation {
export type Leaf = _Leaf
}
export namespace Npm {
export type Outdated = _Outdated
}
export namespace OpenAi {
export type OpenAiChat = _OpenAiChat
}

export namespace FS {
export type Entry = _Entry
export type NpmInfos = _NpmInfos
}
5 changes: 1 addition & 4 deletions fronts/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@
},
"devDependencies": {
"@clabroche/common-retrigger-all-build": "workspace:*",
"@clabroche/modules-documentation-backend": "workspace:*",
"@clabroche/modules-global-scripts-backend": "workspace:*",
"@clabroche/modules-npm-backend": "workspace:*",
"@clabroche/modules-openai-backend": "workspace:*",
"@clabroche/common-typings": "workspace:*",
"@clabroche/modules-plugins-loader-front": "workspace:*",
"@fortawesome/fontawesome-free": "^6.5.1",
"@vitejs/plugin-vue": "^5.0.3",
Expand Down
Loading

0 comments on commit 496f153

Please sign in to comment.