Skip to content

Commit 56d3394

Browse files
committed
docs: fix incorrect import paths in bindings structure docs
1 parent c692d6b commit 56d3394

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/content/docs/structure.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ export declare const init: (args: { IDL: typeof IDL }) => IDL.Type[];
449449
You can use it to type the [`Actor`](https://js.icp.build/core/latest/libs/agent/api/classes/actor/) instance with the methods of the service declared in the `.did` file:
450450

451451
```typescript
452-
import { type _SERVICE, idlFactory } from "./bindings/hello_world/declarations/hello_world.did";
452+
import { type _SERVICE, idlFactory } from "./bindings/declarations/hello_world.did";
453453

454454
const actor = Actor.createActor<_SERVICE>( idlFactory, {
455455
canisterId: "your-canister-id",
@@ -551,7 +551,7 @@ This file contains the actual Candid JS bindings, that allow encoding and decodi
551551
Typically passed to the [`Actor.createActor`](https://js.icp.build/core/latest/libs/agent/api/classes/actor/#createactor) function:
552552

553553
```typescript
554-
import { idlFactory } from "./bindings/hello_world/declarations/hello_world.did";
554+
import { idlFactory } from "./bindings/declarations/hello_world.did";
555555

556556
const actor = Actor.createActor(idlFactory, {
557557
canisterId: "your-canister-id",

0 commit comments

Comments
 (0)