Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-maskedinput

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-maskedinput - npm Package Compare versions

Comparing version 4.0.9 to 4.0.10

52

react-maskedinput/index.d.ts
import * as React from "react";
export interface FormatCharacter {
validate(char: string): string;
transform?(char: string): string;
}
declare namespace MaskedInput {
interface FormatCharacter {
validate(char: string): string;
transform?(char: string): string;
}
export interface CharsFormatters {
[char: string]: FormatCharacter;
}
interface CharsFormatters {
[char: string]: FormatCharacter;
}
export interface MaskedInputProps extends React.InputHTMLAttributes<any> {
mask: string;
formatCharacters?: CharsFormatters | undefined;
placeholderChar?: string | undefined;
interface MaskedInputProps extends
Omit<
React.InputHTMLAttributes<HTMLInputElement>,
| "maxLength"
| "onKeyDown"
| "onKeyPress"
| "onPaste"
>
{
/**
* The masking pattern to be applied to the `<input>`.
* See the {@link https://github.com/insin/inputmask-core#pattern|inputmask-core} docs for
* supported formatting characters.
*/
mask: string;
/**
* Customised format character definitions for use in the pattern.
* See the {@link https://github.com/insin/inputmask-core#formatcharacters|inputmask-core}
* docs for details of the structure of this object.
*/
formatCharacters?: CharsFormatters | undefined;
/**
* Customised placeholder character used to fill in editable parts of the pattern.
* See the {@link https://github.com/insin/inputmask-core#placeholderchar--string|inputmask-core}
* docs for details.
*/
placeholderChar?: string | undefined;
}
}
declare class MaskedInput extends React.Component<MaskedInputProps> {}
export default MaskedInput;
declare class MaskedInput extends React.Component<MaskedInput.MaskedInputProps> {}
export = MaskedInput;
{
"name": "@types/react-maskedinput",
"version": "4.0.9",
"version": "4.0.10",
"description": "TypeScript definitions for react-maskedinput",

@@ -30,4 +30,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-maskedinput",

},
"typesPublisherContentHash": "5bdce2d6feab5e65a4e1d5dd503013ab5f24c5b73e7f8a9583c12fe5749ea94c",
"typeScriptVersion": "4.5"
"typesPublisherContentHash": "4274cea227fc4e7ed241e8b1df91b0bb3644867c4b2994f45a23b2743b003cd3",
"typeScriptVersion": "4.8"
}

@@ -13,24 +13,50 @@ # Installation

export interface FormatCharacter {
validate(char: string): string;
transform?(char: string): string;
}
declare namespace MaskedInput {
interface FormatCharacter {
validate(char: string): string;
transform?(char: string): string;
}
export interface CharsFormatters {
[char: string]: FormatCharacter;
}
interface CharsFormatters {
[char: string]: FormatCharacter;
}
export interface MaskedInputProps extends React.InputHTMLAttributes<any> {
mask: string;
formatCharacters?: CharsFormatters | undefined;
placeholderChar?: string | undefined;
interface MaskedInputProps extends
Omit<
React.InputHTMLAttributes<HTMLInputElement>,
| "maxLength"
| "onKeyDown"
| "onKeyPress"
| "onPaste"
>
{
/**
* The masking pattern to be applied to the `<input>`.
* See the {@link https://github.com/insin/inputmask-core#pattern|inputmask-core} docs for
* supported formatting characters.
*/
mask: string;
/**
* Customised format character definitions for use in the pattern.
* See the {@link https://github.com/insin/inputmask-core#formatcharacters|inputmask-core}
* docs for details of the structure of this object.
*/
formatCharacters?: CharsFormatters | undefined;
/**
* Customised placeholder character used to fill in editable parts of the pattern.
* See the {@link https://github.com/insin/inputmask-core#placeholderchar--string|inputmask-core}
* docs for details.
*/
placeholderChar?: string | undefined;
}
}
declare class MaskedInput extends React.Component<MaskedInputProps> {}
export default MaskedInput;
declare class MaskedInput extends React.Component<MaskedInput.MaskedInputProps> {}
export = MaskedInput;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Last updated: Tue, 24 Sep 2024 17:37:38 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react)

@@ -37,0 +63,0 @@

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc