You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,7 +195,7 @@ Manages an [`Error`][js-error] of validation.
195
195
196
196
![update]
197
197
198
-
[2.0.0]: Uses static private property `#template` and guards the value with private static method `#guardTemplate()` to be `string` type that contains `[fix]` and `[problem]` words.
198
+
**`2.0.0`:** Uses static private property `#template` and guards the value with private static method `#guardTemplate()` to be `string` type that contains `[fix]` and `[problem]` words.
199
199
200
200
A template of the error message guarded by [`string`][js-string] type with the replaceable `[problem]` and `[fix]` words. By default, it's set to `Problem: [problem] => Fix: [fix]`. It can be set directly or by the [`setTemplate()`][error-method-settemplate] and [`setMessage()`][error-method-setmessage] method. The value is being checked against the existence of `[problem]` and `[fix]` words.
201
201
@@ -220,7 +220,7 @@ static set template(value: string) {
220
220
221
221
![update]
222
222
223
-
[2.0.0]: Uses static private property `#fix` and guards the value to be a [`string`][js-string] type.
223
+
**`2.0.0`:** Uses static private property `#fix` and guards the value to be a [`string`][js-string] type.
224
224
225
225
A possible solution to the described [`problem`][error-property-problem] of validation that is guarded by a [`string`][js-string] type. By default, it's an empty [`string`][js-string]. It can be set directly or by the [`setFix()`][error-method-setfix] and [`setMessage()`][error-method-setmessage] method.
226
226
@@ -239,7 +239,7 @@ public set fix(value: string) {
239
239
240
240
![update]
241
241
242
-
[2.0.0]: Uses inherited from `Error` property and guards the value to be a [`string`][js-string] type.
242
+
**`2.0.0`:** Uses inherited from `Error` property and guards the value to be a [`string`][js-string] type.
243
243
244
244
A validation error message guarded by a [`string`][js-string] type that can be build from the [`problem`][error-property-problem] and [`fix`][error-property-fix] of [`ValidationError`](#validationerror) on the [`template`][error-property-template]. It can be set directly or by the [`throw()`][error-method-throw] and [`setMessage()`][error-method-setmessage] method.
245
245
@@ -289,7 +289,7 @@ public set problem(value: string) {
289
289
290
290
![update]
291
291
292
-
[2.0.0]: Adds template to the provided `message` instead of separate parameter and guards it with a static `#guardMessage()` method.
292
+
**`2.0.0`:** Adds template to the provided `message` instead of separate parameter and guards it with a static `#guardMessage()` method.
293
293
294
294
Defines the validation error message of a [`string`][js-string] type from the provided `message` of the [`ErrorMessage`](#errormessage) interface.
[2.0.0]: Adds template to the provided `message` instead of separate parameter and uses a new method [`setMessage()`][error-method-setmessage] to set message. Handle the callback for all instance methods with the callback parameter.
412
+
**`2.0.0`:** Adds template to the provided `message` instead of separate parameter and uses a new method [`setMessage()`][error-method-setmessage] to set message. Handle the callback for all instance methods with the callback parameter.
413
413
414
414
Creates a new instance with the message. If the provided `message` is an [`object`][js-object], then its properties are assigned to the instance.
415
415
@@ -975,7 +975,7 @@ addPerson({
975
975
976
976
![update]
977
977
978
-
[2.0.0]: Adds an optional `template` property.
978
+
`2.0.0`: Adds an optional `template` property.
979
979
980
980
The shape of an [`object`][js-object] for an [`error`][js-error] message that contains a possible solution to the described problem.
0 commit comments