greybel-interpreter 2.6.14 → 2.6.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,13 @@
1
1
  import { OperationContext } from '../context';
2
- export interface KeyEvent {
2
+ interface KeyEventWithKeyCode {
3
3
  keyCode: number;
4
4
  code: string;
5
5
  }
6
+ interface KeyEventWithCharCode {
7
+ charCode: number;
8
+ code: string;
9
+ }
10
+ export type KeyEvent = KeyEventWithKeyCode | KeyEventWithCharCode;
6
11
  export interface PrintOptions {
7
12
  appendNewLine: boolean;
8
13
  replace: boolean;
@@ -21,3 +26,4 @@ export declare class DefaultOutputHandler extends OutputHandler {
21
26
  waitForKeyPress(_ctx: OperationContext, _message?: string): PromiseLike<KeyEvent>;
22
27
  clear(_ctx: OperationContext): void;
23
28
  }
29
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "greybel-interpreter",
3
- "version": "2.6.14",
3
+ "version": "2.6.15",
4
4
  "description": "Interpreter",
5
5
  "main": "dist/index",
6
6
  "typings": "dist/index",