DecimalOptions
Defined in: projects/ngx-signal-schema/src/lib/validators/decimal.ts:10
Configuration options for the decimal validator.
Extends
Section titled “Extends”Properties
Section titled “Properties”error?
Section titled “error?”
optionalerror?:object
Defined in: projects/ngx-signal-schema/src/lib/validators/error-options.ts:20
Optional object containing error details.
optionalkind?:string
The kind of error as a string identifier.
message?
Section titled “message?”
optionalmessage?:string
A message describing the error.
Inherited from
Section titled “Inherited from”locale?
Section titled “locale?”
optionallocale?:string
Defined in: projects/ngx-signal-schema/src/lib/validators/decimal.ts:33
Optional locale for parsing strings. Default is ‘de-DE’
maxFractionDigits
Section titled “maxFractionDigits”maxFractionDigits:
number
Defined in: projects/ngx-signal-schema/src/lib/validators/decimal.ts:21
Maximum number of digits after the decimal separator. Example: maxFractionDigits = 2 allows 12.34 but rejects 12.345
maxIntegerDigits
Section titled “maxIntegerDigits”maxIntegerDigits:
number
Defined in: projects/ngx-signal-schema/src/lib/validators/decimal.ts:15
Maximum number of digits before the decimal separator. Example: maxIntegerDigits = 3 allows 999.99 but rejects 1000.00
message?
Section titled “message?”
optionalmessage?:string
Defined in: projects/ngx-signal-schema/src/lib/validators/decimal.ts:27
Optional custom error message. or message key