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