Skip to content

Commit feef962

Browse files
committed
docs: generate documentation
1 parent 63cf4bf commit feef962

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,11 @@ A `Validator` will always maintain a valid json schema representation of the typ
274274
The underlying json schema can always be accessed with `getSchema()`.
275275
###### Example:
276276
```typescript
277-
const stringValidator = new Validator<string>({ type: 'string' });
278-
const numberValidator = new Validator<number>({ type: 'number' });
279-
const strOrNum = new Validator<string | number>({ oneOf: [ { type: 'string' }, { type: 'number' } ]});
280-
const strOrNum2 = stringValidator.or(numberValidator);
281-
```
277+
const stringValidator = new Validator<string>({ type: 'string' });
278+
const numberValidator = new Validator<number>({ type: 'number' });
279+
const strOrNum = new Validator<string | number>({ oneOf: [ { type: 'string' }, { type: 'number' } ]});
280+
const strOrNum2 = stringValidator.or(numberValidator);
281+
```
282282

283283
### Validator.and
284284
Creates a new validator that is true whenever the data matches `this` _and_ `v`.

0 commit comments

Comments
 (0)