Skip to content

Commit b94e42f

Browse files
committed
fix: flow types for Validation
1 parent cf2599b commit b94e42f

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

src/Validation.js.flow

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
// @flow
22

33
import Type from './types/Type'
4+
import RuntimeTypeErrorItem from './errorReporting/RuntimeTypeErrorItem'
45

56
export type IdentifierPath = Array<string | number | symbol>
67

7-
export type RuntimeTypeErrorItem = [IdentifierPath, string, Type<any>]
8-
98
declare class Validation {
109
input: any;
1110

src/typeConstraints.js.flow

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
// @flow
22

33
import Type from './types/Type'
4-
import Validation, {
5-
type RuntimeTypeErrorItem,
6-
type IdentifierPath,
7-
} from './Validation'
4+
import Validation, { type IdentifierPath } from './Validation'
85

96
export type TypeConstraint<T> = (input: T) => ?string
107

0 commit comments

Comments
 (0)