From 042216be691c7a71e0856c73a9182e412bfcba03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilherme=20H=C3=BCbner=20Franco?= Date: Tue, 13 Mar 2018 13:44:17 -0300 Subject: [PATCH] [react-text-mask] Fix definition --- types/react-text-mask/index.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/types/react-text-mask/index.d.ts b/types/react-text-mask/index.d.ts index f4c46bea58..7ed81429e0 100644 --- a/types/react-text-mask/index.d.ts +++ b/types/react-text-mask/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-text-mask 16.0 +// Type definitions for react-text-mask 5.1 // Project: https://github.com/text-mask/text-mask // Definitions by: Guilherme Hübner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -9,7 +9,7 @@ import * as React from "react"; export type maskArray = Array; export interface MaskedInputProps extends React.InputHTMLAttributes { - mask?: maskArray | ((input: HTMLInputElement) => maskArray); + mask?: maskArray | ((value: string) => maskArray); guide?: boolean; @@ -19,9 +19,7 @@ export interface MaskedInputProps extends React.InputHTMLAttributes false | string | { value: string, indexesOfPipedChars: number[] }; - onReject?: (infos: { conformedValue: string, maskRejection: boolean, pipeRejection: boolean }) => void; - - onAccept?: () => void; + showMask?: boolean; } export interface conformToMaskResult {