Skip to content

Commit

Permalink
v2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuykendall committed Feb 18, 2020
1 parent a2d2e5f commit 2308322
Show file tree
Hide file tree
Showing 13 changed files with 9,695 additions and 1,444 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d

Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).

#### [v2.0.0](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.8...v2.0.0)

> 3 February 2020
- Rewrite API docs to match Formsy 2.x release [`#190`](https://github.com/formsy/formsy-react/pull/190)
- Add coveralls library + Travis build step [`c5b8209`](https://github.com/formsy/formsy-react/commit/c5b8209f1a405d8c772ccf1cd810d5856f32b6c3)
- Collect coverage with Jest [`6bed870`](https://github.com/formsy/formsy-react/commit/6bed870280c8b6bfb24de49b5393f36bded41a6c)
- Track coverage with Coveralls [`3de2810`](https://github.com/formsy/formsy-react/commit/3de2810890d4039312d2f34880aa86c8fb1548db)

#### [v2.0.0-beta.8](https://github.com/formsy/formsy-react/compare/v2.0.0-beta.7...v2.0.0-beta.8)

> 30 January 2020
Expand Down
30 changes: 17 additions & 13 deletions dist/Wrapper.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { RequiredValidation, Validations } from './interfaces';
import { RequiredValidation, ValidationError, Validations } from './interfaces';
declare const propTypes: {
innerRef: PropTypes.Requireable<(...args: any[]) => any>;
name: PropTypes.Validator<string>;
Expand All @@ -9,46 +9,50 @@ declare const propTypes: {
value: PropTypes.Requireable<any>;
};
export interface WrapperProps<V> {
innerRef?: (ref: any) => void;
innerRef?: (ref: React.Ref<any>) => void;
name: string;
required?: RequiredValidation<V>;
validationError?: any;
validationErrors?: any;
validationError?: ValidationError;
validationErrors?: {
[key: string]: ValidationError;
};
validations?: Validations<V>;
value?: V;
}
export interface WrapperState<V> {
[key: string]: unknown;
externalError: null;
formSubmitted: boolean;
isPristine: boolean;
isRequired: boolean;
isValid: boolean;
pristineValue: any;
validationError: any[];
pristineValue: V;
validationError: ValidationError[];
value: V;
}
export interface InjectedProps<V> {
errorMessage: any;
errorMessages: any;
errorMessage: ValidationError;
errorMessages: ValidationError[];
hasValue: boolean;
isFormDisabled: boolean;
isFormSubmitted: boolean;
isPristine: boolean;
isRequired: boolean;
isValid: boolean;
isValidValue: (value: V) => boolean;
ref?: any;
ref?: React.Ref<any>;
resetValue: () => void;
setValidations: (validations: Validations<V>, required: RequiredValidation<V>) => void;
setValue: (value: V) => void;
showError: boolean;
showRequired: boolean;
}
export interface WrapperInstanceMethods {
export interface WrapperInstanceMethods<V> {
getErrorMessage: () => null | ValidationError;
getErrorMessages: () => ValidationError[];
getValue: () => V;
isFormDisabled: () => boolean;
isValid: () => boolean;
getValue: () => any;
getErrorMessage: () => any;
setValue: (value: V) => void;
}
export declare type PassDownProps<V> = WrapperProps<V> & InjectedProps<V>;
export { propTypes };
Expand Down
Loading

0 comments on commit 2308322

Please sign in to comment.