Skip to content

Commit

Permalink
updated example project
Browse files Browse the repository at this point in the history
  • Loading branch information
jacoobia committed Jan 12, 2024
1 parent 3c3f8a5 commit f1d41da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/validation/userValidation.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Middleware, validator, StringValidator, NumberValidator } from '../../dist';
import { Middleware, StringValidator, NumberValidator, createValidator } from '../../dist';

export const addUserValidator: Middleware = validator({
export const addUserValidator: Middleware = createValidator({
firstname: StringValidator(),
surname: StringValidator(),
age: NumberValidator()
Expand Down

0 comments on commit f1d41da

Please sign in to comment.