We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The init function generated by Candid IDL is handy when deploying a canister in JavaScript (whether for real deployments or during tests with picJS).
init
picJS
Currently, this function is not exposed in the .d.ts files of all packages in ic-js.
.d.ts
ic-js
import type { IDL } from "@dfinity/candid"; export const idlFactory: IDL.InterfaceFactory;
This limitation can be overcome with a workaround:
// @ts-expect-error init is not packaged / exposed import { idlFactory, init } from '@dfinity/ledger-icp/dist/candid/ledger.idl.js';
However, it would improve the developer experience to have it exposed directly.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The
init
function generated by Candid IDL is handy when deploying a canister in JavaScript (whether for real deployments or during tests withpicJS
).Currently, this function is not exposed in the
.d.ts
files of all packages inic-js
.This limitation can be overcome with a workaround:
However, it would improve the developer experience to have it exposed directly.
The text was updated successfully, but these errors were encountered: