Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.06 KB

File metadata and controls

48 lines (39 loc) · 1.06 KB

startRepl (function)

Launch the Yavascript REPL (read-eval-print-loop).

  • @param context — Variables to make available as globals within the repl.
  • @param lang — The language to use in the repl. Defaults to "javascript".
const startRepl: {
  (
    context?: {
      [key: string]: any;
    },
    lang?:
      | "js"
      | "javascript"
      | "ts"
      | "typescript"
      | "jsx"
      | "tsx"
      | "coffee"
      | "coffeescript"
      | "civet",
  ): void;
  NOTHING: symbol;
};

startRepl(...) (call signature)

(context?: {
  [key: string]: any;
}, lang?: "js" | "javascript" | "ts" | "typescript" | "jsx" | "tsx" | "coffee" | "coffeescript" | "civet"): void;

startRepl.NOTHING (symbol property)

A special value; when expressions result in this value, the repl will print nothing instead of printing this value.

NOTHING: symbol;