Socket
Socket
Sign inDemoInstall

@types/react-currency-format

Package Overview
Dependencies
3
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.0 to 1.0.1

49

react-currency-format/index.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc