From 1bdb63d60e75176cd0b16c073c0db4ee042c5fa5 Mon Sep 17 00:00:00 2001 From: Gustavo Parreira Date: Sun, 20 Feb 2022 19:02:09 +0000 Subject: [PATCH] fix: TypeScript declarations --- index.d.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.d.ts b/index.d.ts index 5fb8614..9eae040 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,14 +1,15 @@ -import { TextInputProps as RNTextInputProps } from "react-native"; + +import { NativeSyntheticEvent } from "react-native"; declare module "react-native" { - export type ImageChangeEventData = { + type ImageChangeEventData = { uri: string; data: string; linkUri?: string; mime?: string; }; - export type ImageChangeEvent = NativeSyntheticEvent; + type ImageChangeEvent = NativeSyntheticEvent; - export interface TextInputProps extends RNTextInputProps { - onImageChange?(event: ImageChangeEvent): void; + interface TextInputProps { + onImageChange?: (event: ImageChangeEvent) => void; } }