Skip to content

Commit ff05589

Browse files
committed
fix: types for AccountsNamespace.all
1 parent 4862337 commit ff05589

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/anchor-contrib/src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ type AccountsNamespace<A> = {
9797
/**
9898
* Returns all instances of this account type for the program.
9999
*/
100-
all: (filter?: Buffer) => Promise<ProgramAccount<A[K]>[]>;
100+
all: (
101+
...args: Parameters<AccountClient["all"]>
102+
) => Promise<ProgramAccount<A[K]>[]>;
101103
/**
102104
* @deprecated since version 14.0.
103105
*

0 commit comments

Comments
 (0)