0.3.6 • Published 3 months ago

@aws-lite/dynamodb-types v0.3.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

Install

Add to devDependencies in package.json:

npm i -D @aws-lite/dynamodb-types

Be sure you also have @aws-lite/dynamodb installed.

Usage and Config

Javascript VSCode Intellisense

In a Javascript project, the ambient types will be automatically loaded.

import awsLite from '@aws-lite/client';

const client = await awsLite({ region: 'us-east-1' });
const { Item: myArticle } = await client.dynamodb.GetItem({
  TableName: 'articles',
  Key: { articleID: '123-ABC' },
});

client.dynamodb.GetItem and the myArticle result will have Intellisense.

TypeScript tsconfig

Add this package to compilerOptions.types

Example:

{
  "extends": "@tsconfig/node-lts/tsconfig.json",
  "compilerOptions": {
    "types": [
      "@aws-lite/dynamodb-types"
    ]
  }
}

Or use reference types

Either in individual files or in an index.d.ts file.

/// <reference types="@aws-lite/dynamodb-types" />

ymmv

/// <reference path="./node_modules/@aws-lite/dynamodb-types/index.d.ts" />
0.3.6

3 months ago

0.3.5

3 months ago

0.3.4

3 months ago

0.3.3

3 months ago

0.3.2

4 months ago

0.3.1

5 months ago

0.3.0

5 months ago

0.2.4

6 months ago

0.2.3

6 months ago

0.2.2

6 months ago