hadronous / pic-js

An Internet Computer Protocol canister testing library for TypeScript and JavaScript.
https://hadronous.github.io/pic-js/
Apache License 2.0
11 stars 6 forks source link

Discrepency between docs and code on `createActor` method. #51

Open nathanosdev opened 5 months ago

nathanosdev commented 5 months ago

Doc:

const actor = pic.createActor<_SERVICE>({ idlFactory, canisterId });

Code:

createActor<T = ActorInterface>(interfaceFactory: IDL.InterfaceFactory, canisterId: Principal): Actor<T>;

The doc is the intended interface.