@tstdl/base 0.93.31 → 0.93.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/orm/schemas/numeric.d.ts
CHANGED
|
@@ -14,4 +14,5 @@ export declare class NumericSchema extends NumberSchema {
|
|
|
14
14
|
}
|
|
15
15
|
export declare function numeric(precision: number, scale: number, options?: TypedOmit<NumericSchemaOptions, 'precision' | 'scale'>): NumericSchema;
|
|
16
16
|
export declare function numeric(options?: NumericSchemaOptions): NumericSchema;
|
|
17
|
+
export declare function NumericProperty(precision: number, scale: number, options?: TypedOmit<NumericSchemaOptions, 'precision' | 'scale'> & SchemaDecoratorOptions): SchemaPropertyDecorator;
|
|
17
18
|
export declare function NumericProperty(options?: NumericSchemaOptions & SchemaDecoratorOptions): SchemaPropertyDecorator;
|
package/orm/schemas/numeric.js
CHANGED
|
@@ -18,6 +18,6 @@ export function numeric(precisionOrOptions, scale, options) {
|
|
|
18
18
|
}
|
|
19
19
|
return new NumericSchema({ precision: precisionOrOptions, scale, ...options });
|
|
20
20
|
}
|
|
21
|
-
export function NumericProperty(options) {
|
|
22
|
-
return Property(numeric(options), options);
|
|
21
|
+
export function NumericProperty(precisionOrOptions, scale, options) {
|
|
22
|
+
return Property(numeric(precisionOrOptions, scale, options), options);
|
|
23
23
|
}
|