Skip to content

Commit b658ab5

Browse files
refactor(abstract-utxo): improve toPlainObject signature
Make the `opts` and `path` arguments optional in the `toPlainObject` function. Issue: BTC-1450
1 parent 35fdca6 commit b658ab5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/abstract-utxo/test/core/toPlainObject.utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ function toPlainObjectFromPropertyDescriptors(v: unknown, opts: ToPlainObjectOpt
5050
);
5151
}
5252

53-
export function toPlainObject(v: unknown, opts: ToPlainObjectOpts, path: PathElement[]): unknown {
53+
export function toPlainObject(v: unknown, opts: ToPlainObjectOpts = {}, path: PathElement[] = []): unknown {
5454
if (opts.apply) {
5555
const result = opts.apply(v, path);
5656
if (result !== undefined) {

0 commit comments

Comments
 (0)