mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
22 lines
673 B
TypeScript
22 lines
673 B
TypeScript
import type { ReplContext } from './repl-context';
|
|
import type { ReplFunction } from './repl-function';
|
|
|
|
export type ReplFnDefinition = {
|
|
/** Function's name. Note that this should be a valid JavaScript function name. */
|
|
name: string;
|
|
|
|
/** Alternative names to the function. */
|
|
aliases?: ReplFnDefinition['name'][];
|
|
|
|
/** Function's description to display when `<function>.help` is entered. */
|
|
description: string;
|
|
|
|
/**
|
|
* Function's signature following TypeScript _function type expression_ syntax.
|
|
* @example '(token: InjectionToken) => any'
|
|
*/
|
|
signature: string;
|
|
};
|
|
|
|
export type ReplFunctionClass = new (replContext: ReplContext) => ReplFunction;
|