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

@types/react-maskedinput

Package Overview
Dependencies
Maintainers
1
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 3.3.3 to 4.0.0

41

react-maskedinput/index.d.ts

@@ -1,31 +0,26 @@

// Type definitions for react-maskedinput 3.3
// Type definitions for react-maskedinput 4.0
// Project: https://github.com/insin/react-maskedinput
// Definitions by: Karol Janyst <https://github.com/LKay>
// Definitions by: Karol Janyst <https://github.com/LKay>,
// Adam Lavin <https://github.com/lavoaster>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
import { ComponentClass, HTMLAttributes } from "react";
import * as React from "react";
export as namespace MaskedInput;
export interface FormatCharacter {
validate(char: string): string;
transform?(char: string): string;
}
export = MaskedInput;
export interface CharsFormatters {
[char: string]: FormatCharacter;
}
declare const MaskedInput: MaskedInput;
type MaskedInput = ComponentClass<MaskedInput.MaskedInputProps>;
export interface MaskedInputProps extends React.HTMLAttributes<any> {
mask: string;
formatCharacter?: CharsFormatters;
placeholderChar?: string;
}
declare namespace MaskedInput {
interface FormatCharacter {
validate(char: string): string;
transform?(char: string): string;
}
interface CharsFormatters {
[char: string]: FormatCharacter;
}
interface MaskedInputProps extends HTMLAttributes<any> {
mask: string;
formatCharacter?: CharsFormatters;
placeholderChar?: string;
}
}
declare class MaskedInput extends React.Component<MaskedInputProps> {}
export default MaskedInput;
{
"name": "@types/react-maskedinput",
"version": "3.3.3",
"version": "4.0.0",
"description": "TypeScript definitions for react-maskedinput",

@@ -10,2 +10,6 @@ "license": "MIT",

"url": "https://github.com/LKay"
},
{
"name": "Adam Lavin",
"url": "https://github.com/lavoaster"
}

@@ -23,4 +27,4 @@ ],

"peerDependencies": {},
"typesPublisherContentHash": "d94a661de880bf174b79c2de21ae7826112de197e454bc70ca5aafaee178042f",
"typesPublisherContentHash": "3e0947b9dd638a5bd12437b8597a17d29b357c3caaed1ae8b814bd750921c2c9",
"typeScriptVersion": "2.3"
}

@@ -11,7 +11,7 @@ # Installation

Additional Details
* Last updated: Fri, 23 Jun 2017 17:36:34 GMT
* Last updated: Mon, 17 Jul 2017 19:27:11 GMT
* Dependencies: react
* Global values: MaskedInput
* Global values: none
# Credits
These definitions were written by Karol Janyst <https://github.com/LKay>.
These definitions were written by Karol Janyst <https://github.com/LKay>, Adam Lavin <https://github.com/lavoaster>.
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