# @types/react-maskedinput

> TypeScript definitions for react-maskedinput

Latest version **4.0.10** (published 2024-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/react-maskedinput
pnpm add @types/react-maskedinput
yarn add @types/react-maskedinput
bun add @types/react-maskedinput
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 4.0.10 |
| Published | 2024-09-24 |
| First published | 2016-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51449 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/react-maskedinput
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-maskedinput
- npm.io page: https://npm.io/package/@types/react-maskedinput

## Dependencies (1)

- [@types/react](https://npm.io/package/@types/react.md) *

## Recent versions

- 4.0.10 (latest) — 2024-09-24
- 4.0.9 (ts4.5) — 2023-11-07
- 4.0.6 (ts4.3) — 2021-12-24
- 4.0.5 (ts3.6) — 2021-07-08
- 4.0.4 (ts2.9) — 2018-08-06
- 4.0.3 (ts2.6) — 2018-02-12
- 4.0.2 (ts2.3) — 2017-08-28
- 3.3.2 (ts2.2) — 2017-03-28
- 3.3.0 (ts2.0) — 2016-12-28
- 4.0.8 — 2023-10-18
- 4.0.7 — 2023-09-27
- 4.0.1 — 2017-08-09
- 4.0.0 — 2017-07-17
- 3.3.3 — 2017-06-23
- 3.3.1 — 2017-01-23

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-maskedinput/index.d.ts)
````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](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Karol Janyst](https://github.com/LKay), and [Carlos Bonetti](https://github.com/CarlosBonetti).

---
_Source: https://npm.io/package/@types/react-maskedinput · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
