Skip to content

Typescript

This guide covers the basics of using TypeScript with the @icp-sdk/core package.

You must configure your TypeScript compiler to use the a modern moduleResolution strategy.

In your tsconfig.json file, set the moduleResolution to either node16, nodenext, or bundler:

{
"compilerOptions": {
"moduleResolution": "node16"
}
}