Skip to content

Commit

Permalink
Merge branch 'master' into fix/fix_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
trufae authored Jan 16, 2024
2 parents f55d214 + b05c10d commit 720f526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions typescript/r2pipe.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ export interface R2Pipe {
/**
* Same as cmdj but using .call which avoids command injection problems
*
* @param {string} cmd to be executed inside radare2.
* @returns {object} the JSON decoded object from the output of the command
* @param {string} text to be displayed
*/
log(msg: string): string;
/**
Expand Down
5 changes: 3 additions & 2 deletions typescript/r2pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 720f526

Please sign in to comment.