Installation
To install the Kriptonio SDK, simply run following command.
yarn add @kriptonio/sdk
Typescript Users
Kriptonio SDK under the hood is written in TypeScript and it uses few Open-Source libraries that are written in
TypeScript as well. Libraries use some of the newer language features, so TypeScript users will need to tweak their
tsconfig.json
a little bit:
Step 1: Set target
Set target
to minimum ES2020
or higher.
Step 2: Set lib
Add ES2022
to your lib
.
Step 3: Set strict
Set strict
to true
.
As a result, simple working tsconfig.json
file looks like this:
{
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2022"],
"module": "commonjs",
"strict": true,
"skipLibCheck": true
}
}