mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 01:31:45 +00:00
Add inputElement field to the MaskedInput instance
MaskedInput provides inputElement field, that is used internally for rendering and which is accessible from outside via ref. For accessing this field for ref its required to type in the MaskedInput instance
This commit is contained in:
Vendored
+4
-2
@@ -10,7 +10,7 @@ import * as React from "react";
|
||||
|
||||
export type maskArray = Array<string | RegExp>;
|
||||
|
||||
export interface MaskedInputProps
|
||||
export interface MaskedInputProps
|
||||
extends React.InputHTMLAttributes<HTMLInputElement> {
|
||||
mask?: maskArray | ((value: string) => maskArray);
|
||||
|
||||
@@ -40,7 +40,9 @@ export interface conformToMaskResult {
|
||||
export default class MaskedInput extends React.Component<
|
||||
MaskedInputProps,
|
||||
any
|
||||
> {}
|
||||
> {
|
||||
inputElement: HTMLElement;
|
||||
}
|
||||
|
||||
export function conformToMask(
|
||||
text: string,
|
||||
|
||||
Reference in New Issue
Block a user