소스 검색

Revert "ts: Add data type to clients in `AccountNamespace` (#1358)" (#1739)

Armani Ferrante 3 년 전
부모
커밋
a89d2468d0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      ts/src/program/namespace/account.ts

+ 1 - 1
ts/src/program/namespace/account.ts

@@ -66,7 +66,7 @@ type NullableIdlAccount<IDL extends Idl> = IDL["accounts"] extends undefined
  * For the full API, see the [[AccountClient]] reference.
  */
 export type AccountNamespace<IDL extends Idl = Idl> = {
-  [M in keyof AllAccountsMap<IDL>]: AccountClient<IDL, AllAccountsMap<IDL>[M]>;
+  [M in keyof AllAccountsMap<IDL>]: AccountClient<IDL>;
 };
 
 export class AccountClient<