Skip to content

Commit

Permalink
refactor: use type instead of interface
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVentilii-DFINITY committed Oct 19, 2024
1 parent 3609e96 commit 16cafd9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions packages/utils/src/types/agent.utils.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import type { Identity } from "@dfinity/agent";
import type { HttpAgentOptions, Identity } from "@dfinity/agent";

export interface CreateAgentParams {
export type CreateAgentParams = Pick<
HttpAgentOptions,
"host" | "retryTimes" | "verifyQuerySignatures"
> & {
identity: Identity;
host?: string;
fetchRootKey?: boolean;
// @deprecated Shipped as an opt-in feature but, will become the default in next major version
verifyQuerySignatures?: boolean;
retryTimes?: number;
}
};

0 comments on commit 16cafd9

Please sign in to comment.