senecajs/seneca-repl

View on GitHub
src/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
/* Copyright © 2023 Richard Rodger and other contributors, MIT License. */

type CmdSpec = {
  name: string
  argstr: string
  context: any
  options: Record<string, any>
  respond: Function
}

type Cmd = (spec: CmdSpec) => void

export type { CmdSpec, Cmd }