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

TypeScript definitions for react-maskedinput

  • 4.0.10
  • ts4.8
  • ts4.9
  • ts5.0
  • ts5.1
  • ts5.2
  • ts5.3
  • ts5.4
  • ts5.5
  • ts5.6
  • ts5.7
  • ts5.8
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Installation

npm install --save @types/react-maskedinput

Summary

This package contains type definitions for react-maskedinput (https://github.com/insin/react-maskedinput).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-maskedinput.

index.d.ts

import * as React from "react";

declare namespace MaskedInput {
    interface FormatCharacter {
        validate(char: string): string;
        transform?(char: string): string;
    }

    interface CharsFormatters {
        [char: string]: FormatCharacter;
    }

    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<MaskedInput.MaskedInputProps> {}

export = MaskedInput;

Additional Details

  • Last updated: Tue, 24 Sep 2024 17:37:38 GMT
  • Dependencies: @types/react

Credits

These definitions were written by Karol Janyst, and Carlos Bonetti.

FAQs

Package last updated on 24 Sep 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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