Skip to content

Commit

Permalink
fix: flow types for Validation
Browse files Browse the repository at this point in the history
  • Loading branch information
jedwards1211 committed Apr 7, 2021
1 parent cf2599b commit b94e42f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/Validation.js.flow
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// @flow

import Type from './types/Type'
import RuntimeTypeErrorItem from './errorReporting/RuntimeTypeErrorItem'

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

export type RuntimeTypeErrorItem = [IdentifierPath, string, Type<any>]

declare class Validation {
input: any;

Expand Down
5 changes: 1 addition & 4 deletions src/typeConstraints.js.flow
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// @flow

import Type from './types/Type'
import Validation, {
type RuntimeTypeErrorItem,
type IdentifierPath,
} from './Validation'
import Validation, { type IdentifierPath } from './Validation'

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

Expand Down

0 comments on commit b94e42f

Please sign in to comment.