From b05c10d473572278a24981919b0990fa8d1dc413 Mon Sep 17 00:00:00 2001 From: pancake Date: Tue, 16 Jan 2024 17:12:52 +0100 Subject: [PATCH] Some interface fixes --- typescript/r2pipe.d.ts | 1 - typescript/r2pipe.ts | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/typescript/r2pipe.d.ts b/typescript/r2pipe.d.ts index 77f15d2..a1f1c2b 100644 --- a/typescript/r2pipe.d.ts +++ b/typescript/r2pipe.d.ts @@ -55,7 +55,6 @@ export interface R2Pipe { * Log a string to the associated console. This is used internally by `console.log` in some implementations. * * @param {string} text to be displayed - * @returns {boolean} true if successful */ log(msg: string): string; /** diff --git a/typescript/r2pipe.ts b/typescript/r2pipe.ts index 6d0c169..1146fdf 100644 --- a/typescript/r2pipe.ts +++ b/typescript/r2pipe.ts @@ -17,9 +17,10 @@ export interface R2Pipe { * Run a radare2 command in a different address. Same as `.cmd(x + '@ ' + a)` * * @param {string} command to be executed inside radare2. + * @param {number|string|NativePointer} command to be executed inside radare2. * @returns {string} The output of the command execution */ - cmdAt(cmd: string): string; + cmdAt(cmd: string, address: number | string | any): string; /** * Run a radare2 command expecting the output to be JSON @@ -47,7 +48,7 @@ export interface R2Pipe { * @param {NativePointer|string|number} where to seek to execute this command (previous offset is restored after executing it) * @returns {string} the string containing the output of the command */ - callAt(cmd: string, at: string | number | any): string; + callAt(cmd: string, address: string | number | any): string; /** * Same as cmdj but using .call which avoids command injection problems