Skip to content

Commit

Permalink
fix: unwrap PojoObject type
Browse files Browse the repository at this point in the history
  • Loading branch information
skarab42 committed Apr 4, 2022
1 parent 054ab22 commit 62958ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class PojoError<
Object.setPrototypeOf(this, new.target.prototype);
}

toObject(): PojoObject<TType, TArgs, TPojo> {
toObject(): Unwrap<PojoObject<TType, TArgs, TPojo>> {
return {
type: this.type,
args: [...this.args],
Expand Down

0 comments on commit 62958ce

Please sign in to comment.