From fdab6df032ac5b0e598065e2f80bd5e062db2b4a Mon Sep 17 00:00:00 2001 From: Adam Gleitman Date: Wed, 9 Aug 2023 13:55:33 -0700 Subject: [PATCH] Consolidate macOS tags --- Libraries/Components/TextInput/TextInput.d.ts | 8 ++++---- Libraries/StyleSheet/PlatformColorValueTypesMacOS.d.ts | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Libraries/Components/TextInput/TextInput.d.ts b/Libraries/Components/TextInput/TextInput.d.ts index a68adfc348..e102f97ac0 100644 --- a/Libraries/Components/TextInput/TextInput.d.ts +++ b/Libraries/Components/TextInput/TextInput.d.ts @@ -331,7 +331,7 @@ export interface TextInputMacOSProps { /** * Fired when a supported element is pasted */ - onPaste?: ((event: PasteEvent) => void) | undefined; // [macOS] + onPaste?: ((event: PasteEvent) => void) | undefined; /** * Callback that is called when the text input's autoCorrect setting changes. @@ -339,7 +339,7 @@ export interface TextInputMacOSProps { * `{ nativeEvent: { enabled } }`. * Does only work with 'multiline={true}'. */ - onAutoCorrectChange?: ((e: SettingChangeEvent) => void) | undefined; // [macOS] + onAutoCorrectChange?: ((e: SettingChangeEvent) => void) | undefined; /** * Callback that is called when the text input's spellCheck setting changes. @@ -347,7 +347,7 @@ export interface TextInputMacOSProps { * `{ nativeEvent: { enabled } }`. * Does only work with 'multiline={true}'. */ - onSpellCheckChange?: ((e: SettingChangeEvent) => void) | undefined; // [macOS] + onSpellCheckChange?: ((e: SettingChangeEvent) => void) | undefined; /** * Callback that is called when the text input's grammarCheck setting changes. @@ -355,7 +355,7 @@ export interface TextInputMacOSProps { * `{ nativeEvent: { enabled } }`. * Does only work with 'multiline={true}'. */ - onGrammarCheckChange?: ((e: SettingChangeEvent) => void) | undefined; // [macOS] + onGrammarCheckChange?: ((e: SettingChangeEvent) => void) | undefined; /** * Enables Paste support for certain types of pasted types diff --git a/Libraries/StyleSheet/PlatformColorValueTypesMacOS.d.ts b/Libraries/StyleSheet/PlatformColorValueTypesMacOS.d.ts index 5017e6590d..21cf1dbc0b 100644 --- a/Libraries/StyleSheet/PlatformColorValueTypesMacOS.d.ts +++ b/Libraries/StyleSheet/PlatformColorValueTypesMacOS.d.ts @@ -2,13 +2,15 @@ * @format */ +// [macOS] + import {ColorValue, OpaqueColorValue} from './StyleSheet'; type DynamicColorMacOSTuple = { light: ColorValue; dark: ColorValue; - highContrastLight?: ColorValue | undefined; // [macOS] - highContrastDark?: ColorValue | undefined; // [macOS] + highContrastLight?: ColorValue | undefined; + highContrastDark?: ColorValue | undefined; }; export function DynamicColorMacOS(