Skip to content

Commit

Permalink
Version bump for release
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yadav committed Dec 19, 2021
1 parent 1b6d2f3 commit a144fa3
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-number-format",
"description": "React component to format number in an input or as a text.",
"version": "4.8.0",
"version": "4.9.0",
"main": "dist/react-number-format.cjs.js",
"module": "dist/react-number-format.es.js",
"author": "Sudhanshu Yadav",
Expand Down
5 changes: 3 additions & 2 deletions typings/number_format.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ declare module 'react-number-format' {
string,
string,
];
}
};

export type NumberFormatProps<T> = NumberFormatPropsBase<T> & Omit<T, keyof NumberFormatPropsBase<unknown> | 'ref'>
export type NumberFormatProps<T> = NumberFormatPropsBase<T> &
Omit<T, keyof NumberFormatPropsBase<unknown> | 'ref'>;

class NumberFormat<T = InputAttributes> extends React.Component<NumberFormatProps<T>, any> {}
export default NumberFormat;
Expand Down
9 changes: 8 additions & 1 deletion typings/number_format.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ import * as React from 'react';
import { default as NumberFormat } from 'react-number-format';

<NumberFormat value="" />;

<NumberFormat type="tel" />;

<NumberFormat type="tel" readOnly={false} size={1} />;
<NumberFormat customInput={(props: { size: "small" | "large" }) => <></>} type="tel" size="small" />;

<NumberFormat
customInput={(props: { size: 'small' | 'large' }) => <></>}
type="tel"
size="small"
/>;

0 comments on commit a144fa3

Please sign in to comment.