Comparing version 2.0.1-rc.6 to 2.0.1-rc.7
import * as React from 'react'; | ||
export declare type FormikFormProps = Pick<React.FormHTMLAttributes<HTMLFormElement>, Exclude<keyof React.FormHTMLAttributes<HTMLFormElement>, 'onReset' | 'onSubmit'>>; | ||
export declare function Form(props: FormikFormProps): JSX.Element; | ||
export declare namespace Form { | ||
declare function Form(props: FormikFormProps): JSX.Element; | ||
declare namespace Form { | ||
var displayName: string; | ||
} | ||
export default Form; |
'use strict' | ||
'use strict' | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./formik.cjs.production.js') | ||
} else { | ||
module.exports = require('./formik.cjs.development.js') | ||
} | ||
if (process.env.NODE_ENV === 'production') { | ||
module.exports = require('./formik.cjs.production.min.js') | ||
} else { | ||
module.exports = require('./formik.cjs.development.js') | ||
} |
@@ -6,6 +6,6 @@ import * as React from 'react'; | ||
export declare type FormikErrors<Values> = { | ||
[K in keyof Values]?: Values[K] extends object ? FormikErrors<Values[K]> : string; | ||
[K in keyof Values]?: Values[K] extends any[] ? Values[K][number] extends object ? FormikErrors<Values[K][number]>[] | string | string[] : string | string[] : Values[K] extends object ? FormikErrors<Values[K]> : string; | ||
}; | ||
export declare type FormikTouched<Values> = { | ||
[K in keyof Values]?: Values[K] extends object ? FormikTouched<Values[K]> : boolean; | ||
[K in keyof Values]?: Values[K] extends any[] ? Values[K][number] extends object ? FormikTouched<Values[K][number]>[] : boolean : Values[K] extends object ? FormikTouched<Values[K]> : boolean; | ||
}; | ||
@@ -12,0 +12,0 @@ export interface FormikState<Values> { |
{ | ||
"name": "formik", | ||
"description": "Forms in React, without tears", | ||
"version": "2.0.1-rc.6", | ||
"version": "2.0.1-rc.7", | ||
"license": "MIT", | ||
@@ -20,3 +20,3 @@ "author": "Jared Palmer <jared@palmer.net>", | ||
"umd:main": "dist/formik.umd.production.js", | ||
"module": "dist/formik.es.production.js", | ||
"module": "dist/formik.esm.js", | ||
"typings": "dist/index.d.ts", | ||
@@ -34,3 +34,3 @@ "files": [ | ||
"prebuild": "rimraf dist", | ||
"build": "cross-env NODE_ENV=production tsdx build", | ||
"build": "cross-env NODE_ENV=production tsdx build --format=cjs,esm,umd", | ||
"prepublish": "npm run build", | ||
@@ -100,3 +100,3 @@ "format": "prettier --trailing-comma es5 --single-quote --write 'src/**/*' 'test/**/*' 'README.md'", | ||
"rimraf": "^2.6.2", | ||
"tsdx": "^0.6.1", | ||
"tsdx": "^0.7.2", | ||
"typescript": "^3.5.1", | ||
@@ -103,0 +103,0 @@ "webpack": "^4.31.0", |
@@ -15,3 +15,3 @@ ![](https://user-images.githubusercontent.com/4060187/27243721-3b5219d0-52b1-11e7-96f1-dae8391a3ef6.png) | ||
**The below readme is the documentation for the `next` (prerelease) branch. To view the documentation for the latest stable Formik version visit [jaredpalmer.com/formik/docs](https://jaredpalmer.com/formik/docs/overview)** | ||
**The below readme is the documentation for the `next` (prerelease) version of Formik. To view the documentation for the latest stable Formik version visit [jaredpalmer.com/formik/docs](https://jaredpalmer.com/formik/docs/overview)** | ||
@@ -18,0 +18,0 @@ --- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
681008
4297
20