react-number-format
Advanced tools
Comparing version 4.9.0 to 4.9.1
/** | ||
* react-number-format - 4.9.0 | ||
* react-number-format - 4.9.1 | ||
* Author : Sudhanshu Yadav | ||
* Copyright (c) 2016, 2021 to Sudhanshu Yadav, released under the MIT license. | ||
* Copyright (c) 2016, 2022 to Sudhanshu Yadav, released under the MIT license. | ||
* https://github.com/s-yadav/react-number-format | ||
@@ -6,0 +6,0 @@ */ |
/** | ||
* react-number-format - 4.9.0 | ||
* react-number-format - 4.9.1 | ||
* Author : Sudhanshu Yadav | ||
* Copyright (c) 2016, 2021 to Sudhanshu Yadav, released under the MIT license. | ||
* Copyright (c) 2016, 2022 to Sudhanshu Yadav, released under the MIT license. | ||
* https://github.com/s-yadav/react-number-format | ||
@@ -6,0 +6,0 @@ */ |
/** | ||
* react-number-format - 4.9.0 | ||
* react-number-format - 4.9.1 | ||
* Author : Sudhanshu Yadav | ||
* Copyright (c) 2016, 2021 to Sudhanshu Yadav, released under the MIT license. | ||
* Copyright (c) 2016, 2022 to Sudhanshu Yadav, released under the MIT license. | ||
* https://github.com/s-yadav/react-number-format | ||
@@ -6,0 +6,0 @@ */ |
{ | ||
"name": "react-number-format", | ||
"description": "React component to format number in an input or as a text.", | ||
"version": "4.9.0", | ||
"version": "4.9.1", | ||
"main": "dist/react-number-format.cjs.js", | ||
@@ -33,3 +33,3 @@ "module": "dist/react-number-format.es.js", | ||
"compile": "cross-env NODE_ENV=production babel src --out-dir lib", | ||
"test": "cross-env NODE_ENV=test karma start", | ||
"test": "cross-env NODE_ENV=test karma start && yarn test-ts", | ||
"test-build": "cross-env NODE_ENV=production TEST_BROWSER=ChromeHeadless karma start", | ||
@@ -36,0 +36,0 @@ "test-ts": "yarn tsc -p typings", |
/// <reference types="react" /> | ||
declare module 'react-number-format' { | ||
type Modify<T, R> = Pick<T, Exclude<keyof T, keyof R>> & R; | ||
//exclude types from the InputHTMLAttributes | ||
const { defaultValue, value, ...inputAttributes }: React.InputHTMLAttributes<HTMLInputElement>; | ||
type InputAttributes = typeof inputAttributes; | ||
export type InputAttributes = typeof inputAttributes; | ||
@@ -78,7 +80,8 @@ export interface NumberFormatState { | ||
export type NumberFormatProps<T> = NumberFormatPropsBase<T> & | ||
export type NumberFormatProps<T = InputAttributes> = NumberFormatPropsBase<T> & | ||
Omit<InputAttributes, keyof T> & | ||
Omit<T, keyof NumberFormatPropsBase<unknown> | 'ref'>; | ||
class NumberFormat<T = InputAttributes> extends React.Component<NumberFormatProps<T>, any> {} | ||
class NumberFormat<T> extends React.Component<NumberFormatProps<T>, any> {} | ||
export default NumberFormat; | ||
} |
Sorry, the diff of this file is not supported yet
264775
5227