DefinitelyTyped/types/dynamodb/DynamoDB.d.ts
katsanva b6fc18280b Add types for dynamodb module (#35398)
* Add types for dynamodb module

* Removed aws-sdk dependency
2019-05-15 09:22:45 -07:00

56 lines
1.0 KiB
TypeScript

export interface Projection {
ProjectionType?: 'ALL' | 'KEYS_ONLY' | 'INCLUDE' | string;
NonKeyAttributes?: string[];
}
import * as stream from 'stream';
export type DynamoDB = any;
export type DocumentClient = any;
export type binaryType =
| Buffer
| {}
| ArrayBuffer
| DataView
| Int8Array
| Uint8Array
| Uint8ClampedArray
| Int16Array
| Uint16Array
| Int32Array
| Uint32Array
| Float32Array
| Float64Array
| stream.Stream;
interface StringSet {
type: 'String';
values: string[];
}
interface NumberSet {
type: 'Number';
values: number[];
}
interface BinarySet {
type: 'Binary';
values: binaryType[];
}
export type DynamoDbSet = StringSet | NumberSet | BinarySet;
export interface GetItemInput {
TableName: string;
Key: object;
AttributesToGet?: string[];
ConsistentRead?: boolean;
ReturnConsumedCapacity?: string;
ProjectionExpression?: string;
ExpressionAttributeNames?: { [key: string]: string };
}
export {};