Skip to content

Commit df49b9c

Browse files
docs(README.md): update.
1 parent 3d9f4e2 commit df49b9c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ Manages an [`Error`][js-error] of validation.
195195

196196
![update]
197197

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.
199199

200200
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.
201201

@@ -220,7 +220,7 @@ static set template(value: string) {
220220

221221
![update]
222222

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.
224224

225225
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.
226226

@@ -239,7 +239,7 @@ public set fix(value: string) {
239239

240240
![update]
241241

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.
243243

244244
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.
245245

@@ -289,7 +289,7 @@ public set problem(value: string) {
289289

290290
![update]
291291

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.
293293

294294
Defines the validation error message of a [`string`][js-string] type from the provided `message` of the [`ErrorMessage`](#errormessage) interface.
295295

@@ -409,7 +409,7 @@ const errorMessage = ValidationError.defineMessage(
409409

410410
![update]
411411

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.
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.
413413

414414
Creates a new instance with the message. If the provided `message` is an [`object`][js-object], then its properties are assigned to the instance.
415415

@@ -975,7 +975,7 @@ addPerson({
975975

976976
![update]
977977

978-
[2.0.0]: Adds an optional `template` property.
978+
`2.0.0`: Adds an optional `template` property.
979979

980980
The shape of an [`object`][js-object] for an [`error`][js-error] message that contains a possible solution to the described problem.
981981

0 commit comments

Comments
 (0)