Skip to content

Commit

Permalink
feat: add generic type validator
Browse files Browse the repository at this point in the history
  • Loading branch information
emyann committed Jun 22, 2019
1 parent 6222b39 commit 43187b2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/validation/validators/interfaces.validator.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export interface TypeValidator<ValueType, SymbolType extends symbol> {
type: SymbolType;
validateAndParse: (value: any) => ValueType;
}

0 comments on commit 43187b2

Please sign in to comment.