Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for redundant types in DynamoDB DocumentClient #532

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import AWS from "aws-sdk";

// Native types
const stringType: AWS.DynamoDB.DocumentClient.String = "string";
const booleanType: AWS.DynamoDB.DocumentClient.BooleanObject = true;
const numberType: AWS.DynamoDB.DocumentClient.Integer = 123;

// Date
const dateType: AWS.DynamoDB.DocumentClient.TableCreationDateTime = new Date();

// Arrays
const stringArray: AWS.DynamoDB.DocumentClient.AttributeNameList = ["string1", "string2"];
const numberArray: AWS.DynamoDB.DocumentClient.ItemCollectionSizeEstimateRange = [123, 456];
const structureArray: AWS.DynamoDB.DocumentClient.Endpoints = [{ Address: "string", CachePeriodInMinutes: 5 }];
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import AWS_DynamoDBDocumentClient from "@aws-sdk/lib-dynamodb";

// Native types
const stringType: string = "string";
const booleanType: boolean = true;
const numberType: number = 123;

// Date
const dateType: Date = new Date();

// Arrays
const stringArray: Array<string> = ["string1", "string2"];
const numberArray: Array<number> = [123, 456];
const structureArray: Array<AWS_DynamoDBDocumentClient.Endpoint> = [{ Address: "string", CachePeriodInMinutes: 5 }];
Loading