@e22m4u/js-repository
Version:
Реализация репозитория для работы с базами данных в Node.js
28 lines (25 loc) • 750 B
TypeScript
import {DataType} from './data-type.js';
import {PropertyUniqueness} from './property-uniqueness.js';
import {PropertyValidateOptions} from './property-validator/index.js';
import {PropertyTransformOptions} from './property-transformer/index.js';
/**
* Full property definition.
*/
export declare type FullPropertyDefinition = {
type: DataType;
itemType?: DataType;
itemModel?: string;
model?: string;
primaryKey?: boolean;
columnName?: string;
columnType?: string;
required?: boolean;
default?: unknown;
validate?: PropertyValidateOptions;
transform?: PropertyTransformOptions;
unique?: boolean | PropertyUniqueness;
};
/**
* Property definition.
*/
declare type PropertyDefinition = DataType | FullPropertyDefinition;