Skip to content

Commit 847376b

Browse files
committed
test: add ddb-doc-client-redundant-type/global-import
1 parent 6729d70 commit 847376b

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import AWS from "aws-sdk";
2+
3+
// Native types
4+
const stringType: AWS.DynamoDB.DocumentClient.String = "string";
5+
const booleanType: AWS.DynamoDB.DocumentClient.BooleanObject = true;
6+
const numberType: AWS.DynamoDB.DocumentClient.Integer = 123;
7+
8+
// Date
9+
const dateType: AWS.DynamoDB.DocumentClient.TableCreationDateTime = new Date();
10+
11+
// Arrays
12+
const stringArray: AWS.DynamoDB.DocumentClient.AttributeNameList = ["string1", "string2"];
13+
const numberArray: AWS.DynamoDB.DocumentClient.ItemCollectionSizeEstimateRange = [123, 456];
14+
const structureArray: AWS.DynamoDB.DocumentClient.Endpoints = [{ Address: "string", CachePeriodInMinutes: 5 }];
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import AWS_DynamoDBDocumentClient from "@aws-sdk/lib-dynamodb";
2+
3+
// Native types
4+
const stringType: string = "string";
5+
const booleanType: boolean = true;
6+
const numberType: number = 123;
7+
8+
// Date
9+
const dateType: Date = new Date();
10+
11+
// Arrays
12+
const stringArray: Array<string> = ["string1", "string2"];
13+
const numberArray: Array<number> = [123, 456];
14+
const structureArray: Array<AWS_DynamoDBDocumentClient.Endpoint> = [{ Address: "string", CachePeriodInMinutes: 5 }];

0 commit comments

Comments
 (0)