Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ReplService

Hierarchy

  • ReplService

Index

Properties

evalAwarePartialHost

evalAwarePartialHost: EvalAwarePartialHost

Readonly state

state: EvalState

Methods

evalCode

  • evalCode(code: string): void
  • Parameters

    • code: string

    Returns void

nodeEval

  • nodeEval(code: string, _context: any, _filename: string, callback: (err: Error, result?: any) => any): void
  • eval implementation compatible with node's REPL API

    Parameters

    • code: string
    • _context: any
    • _filename: string
    • callback: (err: Error, result?: any) => any
        • (err: Error, result?: any): any
        • Parameters

          • err: Error
          • Optional result: any

          Returns any

    Returns void

setService

  • setService(service: Service): void
  • Bind this REPL to a ts-node compiler service. A compiler service must be bound before eval-ing code or starting the REPL

    Parameters

    Returns void

start

  • start(code?: string): void
  • Start a node REPL

    Parameters

    • Optional code: string

    Returns void

Generated using TypeDoc