Skip to content

Commit

Permalink
Issue #341: Use unknown type as type of result is not known.
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhbw committed Jan 12, 2024
1 parent c07c393 commit 86f7cbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ export class NullishCommandResultError extends Error {
*/
export class ObjectCommandResultError extends Error {
command: string;
result: any;
constructor(command: string, result: any) {
result: unknown;
constructor(command: string, result: unknown) {
super(`Result of command '${command}' is an object`);
Object.setPrototypeOf(this, ObjectCommandResultError.prototype);
this.command = command;
Expand Down

0 comments on commit 86f7cbd

Please sign in to comment.