File tree 2 files changed +28
-0
lines changed
src/transforms/v2-to-v3/__fixtures__/ddb-doc-client-redundant-type
2 files changed +28
-0
lines changed Original file line number Diff line number Diff line change
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 number Diff line number Diff line change
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 } ] ;
You can’t perform that action at this time.
0 commit comments