dynamodb-toolbox
Version:
Lightweight and type-safe query builder for DynamoDB and TypeScript.
13 lines (12 loc) • 657 B
TypeScript
import type { Schema, SchemaExtendedValue } from '../../../../schema/index.js';
import type { Reference } from '../types.js';
import type { Extended } from './isExtension.js';
export declare const $GET: unique symbol;
export type $GET = typeof $GET;
export type GET<VALUE> = Extended<{
[$GET]: VALUE;
}>;
export declare const $get: <REFERENCE extends string, FALLBACK extends undefined | SchemaExtendedValue | Reference<Schema, string> = undefined>(reference: REFERENCE, fallback?: FALLBACK) => GET<FALLBACK extends undefined ? [REFERENCE] : [REFERENCE, FALLBACK]>;
export declare const isGetting: (input: unknown) => input is {
[$GET]: unknown;
};