Skip to content

Commit a254f95

Browse files
committed
fix(Type.ts): fix assert signature
1 parent 1718c94 commit a254f95

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/types/Type.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,7 @@ export default abstract class Type<T> {
3535
return false
3636
}
3737

38-
assert<V extends T>(
39-
input: any,
40-
prefix = '',
41-
path: IdentifierPath = ['input']
42-
): V {
38+
assert(input: any, prefix = '', path: IdentifierPath = ['input']): T {
4339
const validation = this.validate(input, prefix, path)
4440
if (validation.errors.length) {
4541
throw new RuntimeTypeError(validation.errors)

0 commit comments

Comments
 (0)