Skip to content

Commit bcc6521

Browse files
docs(README.md): update.
1 parent 0708846 commit bcc6521

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ Manages an [`Error`][js-error] of validation.
190190

191191
#### `ValidationError.template`
192192

193+
![update]
194+
193195
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]`.
194196

195197
```typescript
@@ -211,6 +213,8 @@ static set template(value: string) {
211213

212214
#### `ValidationError.prototype.fix`
213215

216+
![update]
217+
214218
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].
215219

216220
```typescript
@@ -241,6 +245,8 @@ public get message(): string {
241245

242246
#### `ValidationError.prototype.name`
243247

248+
![update]
249+
244250
Error name of a [`string`][js-string] type that is being thrown. By default, it's ['ValidationError'](#validationerror).
245251

246252
```typescript
@@ -251,6 +257,8 @@ public name = ValidationError.name;
251257

252258
#### `ValidationError.prototype.problem`
253259

260+
![update]
261+
254262
Description of a validation [`problem`][error-property-problem] guarded by a [`string`][js-string] type. By default, it's an empty [`string`][js-string].
255263

256264
```typescript
@@ -388,6 +396,8 @@ const errorMessage = ValidationError.defineMessage(
388396

389397
#### `ValidationError()`
390398

399+
![update]
400+
391401
Creates a new instance with the message. If the provided `message` is an [`object`][js-object], then its properties are assigned to the instance.
392402

393403
```typescript

0 commit comments

Comments
 (0)