From 316c19a91d2548124b04a97427cf7a13e06fca4e Mon Sep 17 00:00:00 2001 From: Blazej Kustra Date: Wed, 30 Aug 2023 11:19:47 +0200 Subject: [PATCH 1/2] Add missing type for TextInput setSelection --- .../Libraries/Components/TextInput/TextInput.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts b/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts index 91d64ce7965f..971926050d7e 100644 --- a/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts +++ b/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts @@ -944,4 +944,9 @@ export class TextInput extends TextInputBase { * Removes all text from the input. */ clear: () => void; + + /** + * Sets the start and end positions of text selection. + */ + setSelection: (start: number, end: number) => void } From d53e6f4efa9e6c94534994b1e5140d1d0602fb02 Mon Sep 17 00:00:00 2001 From: Blazej Kustra Date: Wed, 30 Aug 2023 12:16:15 +0200 Subject: [PATCH 2/2] Add missing semicolon --- .../react-native/Libraries/Components/TextInput/TextInput.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts b/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts index 971926050d7e..98922920a2d7 100644 --- a/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts +++ b/packages/react-native/Libraries/Components/TextInput/TextInput.d.ts @@ -948,5 +948,5 @@ export class TextInput extends TextInputBase { /** * Sets the start and end positions of text selection. */ - setSelection: (start: number, end: number) => void + setSelection: (start: number, end: number) => void; }