@nerdware/ddb-single-table
Version:
A schema-based DynamoDB modeling tool, high-level API, and type-generator built to supercharge single-table designs!⚡
9 lines • 511 B
TypeScript
import type { IODirection } from "../IOActions/types/index.js";
import type { BaseItem, SupportedAttributeValueType, NativeAttributeValue } from "../types/index.js";
/**
* Converts all JS `Date` objects contained within `item` into ISO-8601 strings, and vice versa.
*/
export declare const convertJsDates: <T extends IODirection>(ioDirection: T, item: BaseItem) => {
[attrName: string]: T extends "toDB" ? NativeAttributeValue : SupportedAttributeValueType;
};
//# sourceMappingURL=convertJsDates.d.ts.map