0.3.10 • Published 11 months ago

@aws-lite/dynamodb-types v0.3.10

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
11 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.9

11 months ago

0.3.10

11 months ago

0.3.8

11 months ago

0.3.7

1 year ago

0.3.6

1 year ago

0.3.5

1 year ago

0.3.4

1 year ago

0.3.3

1 year ago

0.3.2

1 year ago

0.3.1

1 year ago

0.3.0

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago