augmenttoolkit / node_modules /@nestjs /core /repl /repl-function.d.ts
Leon4gr45's picture
Include updated package-lock.json (part 10)
cfbbc1a verified
Raw
History Blame Contribute Delete
753 Bytes
import { Logger } from '@nestjs/common';
import { ReplContext } from './repl-context';
import type { ReplFnDefinition } from './repl.interfaces';
export declare abstract class ReplFunction<ActionParams extends Array<unknown> = Array<unknown>, ActionReturn = any> {
protected readonly ctx: ReplContext;
/** Metadata that describes the built-in function itself. */
abstract fnDefinition: ReplFnDefinition;
protected readonly logger: Logger;
constructor(ctx: ReplContext);
/**
* Method called when the function is invoked from the REPL by the user.
*/
abstract action(...args: ActionParams): ActionReturn;
/**
* @returns A message displayed by calling `<fnName>.help`
*/
makeHelpMessage(): string;
}