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

@types/react-text-mask

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-text-mask - npm Package Compare versions

Comparing version 5.4.1 to 5.4.2

27

react-text-mask/index.d.ts
// 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>.
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