@junobuild/admin 0.0.58-next-2024-11-24 → 0.0.58-next-2024-11-25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Identity } from '@dfinity/agent';
|
|
1
|
+
import type { HttpAgent, Identity } from '@dfinity/agent';
|
|
2
2
|
/**
|
|
3
3
|
* Represents the parameters for an actor.
|
|
4
4
|
* @interface
|
|
@@ -21,6 +21,10 @@ export interface ActorParameters {
|
|
|
21
21
|
* @optional
|
|
22
22
|
*/
|
|
23
23
|
container?: boolean | string;
|
|
24
|
+
/**
|
|
25
|
+
* An optional HttpAgent. If none is provided, a new agent will automatically be created to execute calls.
|
|
26
|
+
*/
|
|
27
|
+
agent?: HttpAgent;
|
|
24
28
|
}
|
|
25
29
|
/**
|
|
26
30
|
* Represents the parameters for a satellite actor.
|
|
@@ -6,4 +6,4 @@ export declare const createActor: <T = Record<string, ActorMethod<unknown[], unk
|
|
|
6
6
|
canisterId: string;
|
|
7
7
|
config?: Pick<ActorConfig, "callTransform" | "queryTransform">;
|
|
8
8
|
} & ActorParameters) => Promise<ActorSubclass<T>>;
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const useOrInitAgent: ({ agent, ...rest }: ActorParameters) => Promise<HttpAgent>;
|
package/package.json
CHANGED