Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
Merge dead7f3 into d8d75df
Browse files Browse the repository at this point in the history
  • Loading branch information
ktutnik committed Jun 3, 2020
2 parents d8d75df + dead7f3 commit 180fdb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import reflect, { decorateProperty, decorate, mergeDecorator } from "tinspector";
import reflect, { decorateProperty, decorate, mergeDecorator, TypeOverride } from "tinspector";
import { VisitorInvocation } from './invocation';
import { Result } from './visitor';
import { Class } from './types';
Expand All @@ -21,7 +21,7 @@ function required() {
return createValidation(RequiredValidator)
}

function partial(type: Class) {
function partial(type: TypeOverride | ((x: any) => TypeOverride)) {
return mergeDecorator(reflect.type(type), createValidation(PartialValidator))
}

Expand Down

0 comments on commit 180fdb2

Please sign in to comment.