4.0.9 • Published 6 months ago

@types/react-maskedinput v4.0.9

Weekly downloads
3,959
License
MIT
Repository
github
Last release
6 months ago

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

// Type definitions for react-maskedinput 4.0
// Project: https://github.com/insin/react-maskedinput
// Definitions by: Karol Janyst <https://github.com/LKay>
//                 Carlos Bonetti <https://github.com/CarlosBonetti>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

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: Thu, 23 Dec 2021 23:35:37 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

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

4.0.9

6 months ago

4.0.8

7 months ago

4.0.7

7 months ago

4.0.6

2 years ago

4.0.5

3 years ago

4.0.4

6 years ago

4.0.3

6 years ago

4.0.2

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.3.3

7 years ago

3.3.2

7 years ago

3.3.1

7 years ago

3.3.0

7 years ago