Skip to content

Commit

Permalink
feat: create types.ts file for validation module
Browse files Browse the repository at this point in the history
  • Loading branch information
emyann committed Oct 16, 2019
1 parent 3108dd0 commit 0fc68e3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/validation/types.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
export interface Rule<T> {
name: string;
expect: string;
validate: (input: any) => any;
}

0 comments on commit 0fc68e3

Please sign in to comment.