/
githubmirror
/
nest
Обзор
Документация
Войти
/
githubmirror
/
nest
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
packages/core/repl/repl.interfaces.ts
21 строка
673 B
Micael Levi (@micalevisk)
feat(core): add help messages to built-in repl functions
31 май 2022, 09:05
31 май 2022, 09:05
f37e5d5
Код
Авторство
О чём код?
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;