Skip to content

Commit

Permalink
test: add ddb-doc-client-redundant-type/global-import
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Aug 2, 2023
1 parent 6729d70 commit 847376b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
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 }];

0 comments on commit 847376b

Please sign in to comment.