UNPKG

dynatron

Version:

The most advanced ORM for AWS DynamoDB

19 lines (18 loc) 758 B
import { GetItemOutput } from "@aws-sdk/client-dynamodb"; import { Fetch } from "../_core/items-fetch"; import { DynatronClient, NativeValue } from "../../dynatron"; import { BUILD } from "../../utils/misc-utils"; export declare class Get extends Fetch { private key; constructor(databaseClient: DynatronClient, tableName: string, key: NativeValue); [BUILD](): { _Key: NativeValue; _ProjectionExpressions?: string[] | undefined; ConsistentRead?: true | undefined; ReturnConsumedCapacity: import("@aws-sdk/client-dynamodb").ReturnConsumedCapacity; TableName: string | undefined; }; $: <T = NativeValue | undefined>() => Promise<{ data: T | undefined; } & Omit<GetItemOutput, "Item">>; }