@types/react-maskedinput
Advanced tools
Comparing version 4.0.9 to 4.0.10
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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5836
40
65