Add to devDependencies
in package.json
:
npm i -D @aws-lite/sts-types
Be sure you also have @aws-lite/sts
installed.
In a Javascript project, the ambient types will be automatically loaded.
Example:
{
"extends": "@tsconfig/node-lts/tsconfig.json",
"compilerOptions": {
"types": [
"@aws-lite/sts-types"
]
}
}
Either in individual files or in an index.d.ts
file.
/// <reference types="@aws-lite/sts-types" />
ymmv
/// <reference path="./node_modules/@aws-lite/sts-types/index.d.ts" />