@naturalcycles/db-lib
Version:
Lowest Common Denominator API to supported Databases
6 lines (5 loc) • 455 B
TypeScript
import type { CreatedUpdated, CreatedUpdatedId } from '@naturalcycles/js-lib/types';
export declare function createdUpdatedFields(existingObject?: Partial<CreatedUpdated> | null): CreatedUpdated;
export declare function createdUpdatedIdFields(existingObject?: Partial<CreatedUpdatedId> | null): CreatedUpdatedId;
export declare function deserializeJsonField<T = any>(f?: string): T;
export declare function serializeJsonField(f: any): string | undefined;