property-definition.d.ts 626 B

123456789101112131415161718192021222324
  1. import {DataType} from './data-type.js';
  2. import {PropertyValidateOptions} from './property-validator/index.js';
  3. import {PropertyTransformOptions} from './property-transformer/index.js';
  4. /**
  5. * Full property definition.
  6. */
  7. export declare type FullPropertyDefinition = {
  8. type: DataType;
  9. itemType?: DataType;
  10. model?: string;
  11. primaryKey?: boolean;
  12. columnName?: string;
  13. columnType?: string;
  14. required?: boolean;
  15. default?: unknown;
  16. validate?: PropertyValidateOptions;
  17. transform?: PropertyTransformOptions;
  18. };
  19. /**
  20. * Property definition.
  21. */
  22. declare type PropertyDefinition = DataType | FullPropertyDefinition;