mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.0 KiB
26 lines
1.0 KiB
import { INestApplicationContext, InjectionToken, Logger } from '@nestjs/common';
|
|
import { ReplFunction } from './repl-function';
|
|
import type { ReplFunctionClass } from './repl.interfaces';
|
|
type ModuleKey = string;
|
|
export type ModuleDebugEntry = {
|
|
controllers: Record<string, InjectionToken>;
|
|
providers: Record<string, InjectionToken>;
|
|
};
|
|
type ReplScope = Record<string, any>;
|
|
export declare class ReplContext {
|
|
readonly app: INestApplicationContext;
|
|
readonly logger: Logger;
|
|
debugRegistry: Record<ModuleKey, ModuleDebugEntry>;
|
|
readonly globalScope: ReplScope;
|
|
readonly nativeFunctions: Map<string, ReplFunction<unknown[], any>>;
|
|
private readonly container;
|
|
constructor(app: INestApplicationContext, nativeFunctionsClassRefs?: ReplFunctionClass[]);
|
|
writeToStdout(text: string): void;
|
|
private initializeContext;
|
|
private introspectCollection;
|
|
private stringifyToken;
|
|
private addNativeFunction;
|
|
private registerFunctionIntoGlobalScope;
|
|
private initializeNativeFunctions;
|
|
}
|
|
export {};
|
|
|