@types/react-maskedinput
TypeScript icon, indicating that this package has built-in type declarations

4.0.9 • Public • Published

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";

export interface FormatCharacter {
    validate(char: string): string;
    transform?(char: string): string;
}

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

export interface MaskedInputProps extends React.InputHTMLAttributes<any> {
    mask: string;
    formatCharacters?: CharsFormatters | undefined;
    placeholderChar?: string | undefined;
}

declare class MaskedInput extends React.Component<MaskedInputProps> {}
export default MaskedInput;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

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

/@types/react-maskedinput/

    Package Sidebar

    Install

    npm i @types/react-maskedinput

    Weekly Downloads

    7,271

    Version

    4.0.9

    License

    MIT

    Unpacked Size

    3.91 kB

    Total Files

    5

    Last publish

    Collaborators

    • types