@types/react-text-mask
Advanced tools
Comparing version 5.4.1 to 5.4.2
// Type definitions for react-text-mask 5.4 | ||
// Project: https://github.com/text-mask/text-mask | ||
// Definitions by: Guilherme Hübner <https://github.com/guilhermehubner>, Deividi Cavarzan <https://github.com/cavarzan> | ||
// Definitions by: Guilherme Hübner <https://github.com/guilhermehubner> | ||
// Deividi Cavarzan <https://github.com/cavarzan> | ||
// Artem Lyubchuk <https://github.com/needpower> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
// TypeScript Version: 2.8 | ||
import * as React from 'react'; | ||
import * as React from "react"; | ||
export type maskArray = Array<string | RegExp>; | ||
export interface MaskedInputProps extends React.InputHTMLAttributes<HTMLInputElement> { | ||
export interface MaskedInputProps | ||
extends React.InputHTMLAttributes<HTMLInputElement> { | ||
mask?: maskArray | ((value: string) => maskArray); | ||
@@ -20,7 +23,10 @@ | ||
pipe?: (conformedValue: string, config: any) => false | string | { value: string; indexesOfPipedChars: number[] }; | ||
pipe?: ( | ||
conformedValue: string, | ||
config: any | ||
) => false | string | { value: string; indexesOfPipedChars: number[] }; | ||
showMask?: boolean; | ||
render?: (ref: MaskedInput, props: any) => any; | ||
render?: (ref: (inputElement: HTMLElement) => void, props: any) => any; | ||
} | ||
@@ -35,4 +41,11 @@ | ||
export default class MaskedInput extends React.Component<MaskedInputProps, any> {} | ||
export default class MaskedInput extends React.Component< | ||
MaskedInputProps, | ||
any | ||
> {} | ||
export function conformToMask(text: string, mask: maskArray, config: any): conformToMaskResult; | ||
export function conformToMask( | ||
text: string, | ||
mask: maskArray, | ||
config: any | ||
): conformToMaskResult; |
{ | ||
"name": "@types/react-text-mask", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "TypeScript definitions for react-text-mask", | ||
@@ -16,2 +16,7 @@ "license": "MIT", | ||
"githubUsername": "cavarzan" | ||
}, | ||
{ | ||
"name": "Artem Lyubchuk", | ||
"url": "https://github.com/needpower", | ||
"githubUsername": "needpower" | ||
} | ||
@@ -28,4 +33,4 @@ ], | ||
}, | ||
"typesPublisherContentHash": "5742ae0ff5284364508845ce741301a7e6acba6779952a4ee53fab8d50323662", | ||
"typesPublisherContentHash": "9693b1ad767592da9576b9ef1e168b21d11ad692ee35760aea08d88e17bd93d8", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Mon, 06 Aug 2018 21:55:30 GMT | ||
* Last updated: Sat, 25 Aug 2018 01:04:12 GMT | ||
* Dependencies: react | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Guilherme Hübner <https://github.com/guilhermehubner>, Deividi Cavarzan <https://github.com/cavarzan>. | ||
These definitions were written by Guilherme Hübner <https://github.com/guilhermehubner>, Deividi Cavarzan <https://github.com/cavarzan>, Artem Lyubchuk <https://github.com/needpower>. |
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
4065
37