Skip to content

Commit

Permalink
[dsch] README and Examples update
Browse files Browse the repository at this point in the history
  • Loading branch information
DScheglov committed Mar 18, 2021
1 parent 93394e9 commit 691bf87
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Let's start with an example:

```typescript
import { integer, number, string, struct, tuple, array } from 'ts-cast';
import { toBe } from 'ts-cast/validation';
import { toBe } from 'ts-cast/rules';
import v from 'validator';

export const Person = struct({
Expand Down
2 changes: 1 addition & 1 deletion examples/advanced/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import v from 'validator';
import {
integer, number, string, struct, tuple, array, union, nil, ref, createCaster, Caster
} from '../../../src';
import { toBe } from '../../../src/restrictions';
import { toBe } from '../../../src/rules';

class TEmail extends String { private tag: Symbol
};
Expand Down
2 changes: 1 addition & 1 deletion examples/basics/src/schema.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { integer, number, string, struct, tuple, array } from '../../../src';
import { toBe } from '../../../src/restrictions';
import { toBe } from '../../../src/rules';
import v from 'validator';

export const Person = struct({
Expand Down

0 comments on commit 691bf87

Please sign in to comment.