decimal.d.cts 1.2 KB

1234567891011121314151617181920212223242526
  1. import type { ColumnBuilderBaseConfig } from "../../column-builder.cjs";
  2. import type { ColumnBaseConfig } from "../../column.cjs";
  3. import { entityKind } from "../../entity.cjs";
  4. import type { AnyGelTable } from "../table.cjs";
  5. import { GelColumn, GelColumnBuilder } from "./common.cjs";
  6. export type GelDecimalBuilderInitial<TName extends string> = GelDecimalBuilder<{
  7. name: TName;
  8. dataType: 'string';
  9. columnType: 'GelDecimal';
  10. data: string;
  11. driverParam: string;
  12. enumValues: undefined;
  13. }>;
  14. export declare class GelDecimalBuilder<T extends ColumnBuilderBaseConfig<'string', 'GelDecimal'>> extends GelColumnBuilder<T> {
  15. static readonly [entityKind]: string;
  16. constructor(name: T['name']);
  17. }
  18. export declare class GelDecimal<T extends ColumnBaseConfig<'string', 'GelDecimal'>> extends GelColumn<T> {
  19. static readonly [entityKind]: string;
  20. constructor(table: AnyGelTable<{
  21. name: T['tableName'];
  22. }>, config: GelDecimalBuilder<T>['config']);
  23. getSQLType(): string;
  24. }
  25. export declare function decimal(): GelDecimalBuilderInitial<''>;
  26. export declare function decimal<TName extends string>(name: TName): GelDecimalBuilderInitial<TName>;