Skip to content

Commit

Permalink
Merge pull request #214 from masiulis/master
Browse files Browse the repository at this point in the history
Typescript: Allow using native Input props
  • Loading branch information
s-yadav committed Aug 29, 2018
2 parents f5aeecf + cde28a7 commit e4266af
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion typings/number_format.d.ts
Expand Up @@ -21,7 +21,7 @@ declare module "react-number-format" {
}

export interface NumberFormatProps
extends React.HTMLAttributes<HTMLInputElement> {
extends React.InputHTMLAttributes<HTMLInputElement> {
thousandSeparator?: boolean | string;
decimalSeparator?: boolean | string;
decimalScale?: number;
Expand Down
1 change: 1 addition & 0 deletions typings/number_format.spec.tsx
Expand Up @@ -3,3 +3,4 @@ import { default as NumberFormat } from "react-number-format";

<NumberFormat value="" />;
<NumberFormat type="tel" />;
<NumberFormat type="tel" readOnly={false} />;

0 comments on commit e4266af

Please sign in to comment.