Skip to content

Commit

Permalink
v2.0.0-beta.3
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Jul 5, 2019
1 parent fe8ea23 commit b96eaf0
Show file tree
Hide file tree
Showing 12 changed files with 597 additions and 388 deletions.
44 changes: 43 additions & 1 deletion dist/Wrapper.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,53 @@
import PropTypes from 'prop-types';
import React from 'react';
import PropTypes from 'prop-types';
import { Validations, RequiredValidation, Value } from './interfaces';
declare const propTypes: {
innerRef: PropTypes.Requireable<(...args: any[]) => any>;
name: PropTypes.Validator<string>;
required: PropTypes.Requireable<string | boolean | object>;
validations: PropTypes.Requireable<string | object>;
value: PropTypes.Requireable<any>;
};
export interface WrapperProps {
innerRef?: (ref: any) => void;
name: string;
required: RequiredValidation;
validationError: any;
validationErrors: any;
validations: Validations | string;
value: any;
}
export interface WrapperState {
[key: string]: unknown;
externalError: null;
formSubmitted: boolean;
isPristine: boolean;
isRequired: boolean;
isValid: boolean;
pristineValue: any;
validationError: any[];
value: any;
}
export interface PassDownProps {
errorMessage: any;
errorMessages: any;
hasValue: boolean;
isFormDisabled: boolean;
isFormSubmitted: boolean;
isPristine: boolean;
isRequired: boolean;
isValid: boolean;
isValidValue: (value: Value) => boolean;
name: string;
ref?: any;
resetValue: any;
setValidations: any;
setValue: (value: Value) => void;
showError: boolean;
showRequired: boolean;
validationError: any;
validationErrors: any;
value: Value;
}
export { propTypes };
export default function <Props, State, CompState>(WrappedComponent: React.ComponentClass<Props & State>): React.ComponentClass<Props & State>;
Loading

0 comments on commit b96eaf0

Please sign in to comment.