Skip to content

Commit e96d169

Browse files
committed
allow Flow to infer the type of 'error'
1 parent 4a9bd9a commit e96d169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/schema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export class Context {
6767
return originalMessage;
6868
}
6969

70-
error(inMessage: ?GenericMessage): ValidationError {
70+
error(inMessage: ?GenericMessage) {
7171
let context = this;
7272
let contextMessages = [];
7373
do {

0 commit comments

Comments
 (0)