mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
56 lines
1.0 KiB
TypeScript
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 {};
|