@types/react-currency-format
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,3 +6,3 @@ // Type definitions for react-currency-format 1.0 | ||
import { Component, ComponentType, HTMLAttributes, InputHTMLAttributes } from 'react'; | ||
import { Component, ComponentType, HTMLAttributes, InputHTMLAttributes } from "react"; | ||
@@ -13,3 +13,3 @@ declare namespace CurrencyFormat { | ||
*/ | ||
type InputType = 'text' | 'tel'; | ||
type InputType = "text" | "tel"; | ||
@@ -28,3 +28,3 @@ /** | ||
type DisplayTypeInput = InputHTMLAttributes<HTMLInputElement> & { | ||
displayType?: 'input'; | ||
displayType?: "input"; | ||
customInput?: ComponentType<any>; | ||
@@ -34,3 +34,3 @@ }; | ||
type DisplayTypeText = HTMLAttributes<HTMLSpanElement> & { | ||
displayType?: 'text'; | ||
displayType?: "text"; | ||
customInput?: never; | ||
@@ -43,22 +43,23 @@ }; | ||
*/ | ||
type StrictProps = Partial<{ | ||
thousandSeparator: string | boolean; | ||
thousandSpacing: '2' | '2s' | '3' | '4'; | ||
decimalSeparator: string; | ||
decimalScale: number; | ||
fixedDecimalScale: boolean; | ||
allowNegative: boolean; | ||
prefix: string; | ||
suffix: string; | ||
value: number | string | null; | ||
isNumericString: boolean; | ||
type: InputType; | ||
format: string | ((unformatedInput: string) => string); | ||
removeFormatting: (formattedValue: string) => string; | ||
mask: string | string[]; | ||
onValueChange: (values: Values) => void; | ||
isAllowed: (values: Values) => boolean; | ||
renderText: (formattedValue: string) => JSX.Element; | ||
}> & | ||
(DisplayTypeText | DisplayTypeInput); | ||
type StrictProps = | ||
& Partial<{ | ||
thousandSeparator: string | boolean; | ||
thousandSpacing: "2" | "2s" | "3" | "4"; | ||
decimalSeparator: string; | ||
decimalScale: number; | ||
fixedDecimalScale: boolean; | ||
allowNegative: boolean; | ||
prefix: string; | ||
suffix: string; | ||
value: number | string | null; | ||
isNumericString: boolean; | ||
type: InputType; | ||
format: string | ((unformatedInput: string) => string); | ||
removeFormatting: (formattedValue: string) => string; | ||
mask: string | string[]; | ||
onValueChange: (values: Values) => void; | ||
isAllowed: (values: Values) => boolean; | ||
renderText: (formattedValue: string) => JSX.Element; | ||
}> | ||
& (DisplayTypeText | DisplayTypeInput); | ||
@@ -65,0 +66,0 @@ /** |
{ | ||
"name": "@types/react-currency-format", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "TypeScript definitions for react-currency-format", | ||
@@ -25,4 +25,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-currency-format", | ||
}, | ||
"typesPublisherContentHash": "aa33c6b4e635c95a8d0cefb6f8560a05916c775b81818a19e70615f7e73a945a", | ||
"typeScriptVersion": "3.6" | ||
"typesPublisherContentHash": "482ff5f168d75aabdda0bcc2f89b3d4249c43acb9bb1e0473a9dbb84d844c6bd", | ||
"typeScriptVersion": "4.5" | ||
} |
@@ -16,3 +16,3 @@ # Installation | ||
import { Component, ComponentType, HTMLAttributes, InputHTMLAttributes } from 'react'; | ||
import { Component, ComponentType, HTMLAttributes, InputHTMLAttributes } from "react"; | ||
@@ -23,3 +23,3 @@ declare namespace CurrencyFormat { | ||
*/ | ||
type InputType = 'text' | 'tel'; | ||
type InputType = "text" | "tel"; | ||
@@ -38,3 +38,3 @@ /** | ||
type DisplayTypeInput = InputHTMLAttributes<HTMLInputElement> & { | ||
displayType?: 'input'; | ||
displayType?: "input"; | ||
customInput?: ComponentType<any>; | ||
@@ -44,3 +44,3 @@ }; | ||
type DisplayTypeText = HTMLAttributes<HTMLSpanElement> & { | ||
displayType?: 'text'; | ||
displayType?: "text"; | ||
customInput?: never; | ||
@@ -53,22 +53,23 @@ }; | ||
*/ | ||
type StrictProps = Partial<{ | ||
thousandSeparator: string | boolean; | ||
thousandSpacing: '2' | '2s' | '3' | '4'; | ||
decimalSeparator: string; | ||
decimalScale: number; | ||
fixedDecimalScale: boolean; | ||
allowNegative: boolean; | ||
prefix: string; | ||
suffix: string; | ||
value: number | string | null; | ||
isNumericString: boolean; | ||
type: InputType; | ||
format: string | ((unformatedInput: string) => string); | ||
removeFormatting: (formattedValue: string) => string; | ||
mask: string | string[]; | ||
onValueChange: (values: Values) => void; | ||
isAllowed: (values: Values) => boolean; | ||
renderText: (formattedValue: string) => JSX.Element; | ||
}> & | ||
(DisplayTypeText | DisplayTypeInput); | ||
type StrictProps = | ||
& Partial<{ | ||
thousandSeparator: string | boolean; | ||
thousandSpacing: "2" | "2s" | "3" | "4"; | ||
decimalSeparator: string; | ||
decimalScale: number; | ||
fixedDecimalScale: boolean; | ||
allowNegative: boolean; | ||
prefix: string; | ||
suffix: string; | ||
value: number | string | null; | ||
isNumericString: boolean; | ||
type: InputType; | ||
format: string | ((unformatedInput: string) => string); | ||
removeFormatting: (formattedValue: string) => string; | ||
mask: string | string[]; | ||
onValueChange: (values: Values) => void; | ||
isAllowed: (values: Values) => boolean; | ||
renderText: (formattedValue: string) => JSX.Element; | ||
}> | ||
& (DisplayTypeText | DisplayTypeInput); | ||
@@ -90,3 +91,3 @@ /** | ||
### Additional Details | ||
* Last updated: Mon, 19 Jul 2021 22:31:17 GMT | ||
* Last updated: Wed, 27 Sep 2023 07:12:04 GMT | ||
* Dependencies: [@types/react](https://npmjs.com/package/@types/react) | ||
@@ -93,0 +94,0 @@ * Global values: none |
Copyleft License
License(Experimental) Copyleft license information was found
Found 1 instance in 1 package
No License Found
License(Experimental) License information could not be found
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found
Found 1 instance in 1 package
7751
62
92
3