File tree Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Expand file tree Collapse file tree 1 file changed +8
-13
lines changed Original file line number Diff line number Diff line change 1- import { DocumentClient } from "aws-sdk/lib/dynamodb/document_client" ;
2-
3- export interface Item {
4- key : Object ;
5- data : Object ;
6- }
1+ import { DocumentClient } from "aws-sdk/lib/dynamodb/document_client"
72
83declare function query ( client : DocumentClient )
94 : ( table : String )
105 => ( options : DocumentClient . QueryInput )
11- => Promise < Item > ;
6+ => Promise < Object > ;
127
138 declare function get ( client : DocumentClient )
149 : ( table : String )
1510 => ( key : Object , options : DocumentClient . GetItemInput )
16- => Promise < Item > ;
11+ => Promise < Object > ;
1712
1813declare function scan ( client : DocumentClient )
1914 : ( table : String )
2015 => ( options : DocumentClient . ScanInput )
21- => Promise < Array < Item > > ;
16+ => Promise < Array < Object > > ;
2217
2318declare function put ( client : DocumentClient )
2419 : ( table : String )
25- => ( item : Item , options : DocumentClient . PutItemInput )
26- => Promise < Item > ;
20+ => ( item : Object , options : DocumentClient . PutItemInput )
21+ => Promise < Object > ;
2722
2823declare function update ( client : DocumentClient )
2924 : ( table : String )
3025 => ( key : Object , options : DocumentClient . UpdateItemInput )
31- => Promise < Item > ;
26+ => Promise < Object > ;
3227
3328declare function remove ( client : DocumentClient )
3429 : ( table : String )
3530 => ( key : Object , options : DocumentClient . DeleteItemInput )
36- => Promise < Item > ;
31+ => Promise < Object > ;
3732
3833exports . query = query ;
3934exports . get = get ;
You can’t perform that action at this time.
0 commit comments