Skip to content

Commit

Permalink
refactor: use newly created class
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioVentilii committed Oct 20, 2024
1 parent d2ca541 commit ccc5cbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/utils/src/utils/agent.utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Agent } from "@dfinity/agent";
import type { Agent, Identity } from "@dfinity/agent";
import { AnonymousIdentity, HttpAgent } from "@dfinity/agent";
import type { CreateAgentParams } from "../types/agent.utils";
import { isNullish, nonNullish } from "./nullish.utils";
Expand Down Expand Up @@ -39,10 +39,10 @@ export const createAgent = async ({
});
};

export interface AgentManagerConfig {
fetchRootKey: boolean;
host: string;
}
export type AgentManagerConfig = Pick<
CreateAgentParams,
"fetchRootKey" | "host"
>;

/**
* AgentManager class manages HttpAgent instances for different identities.
Expand Down

0 comments on commit ccc5cbc

Please sign in to comment.