diff options
Diffstat (limited to 'src/alf/types.ts')
-rw-r--r-- | src/alf/types.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/alf/types.ts b/src/alf/types.ts index 76ac05d40..dd8d816d2 100644 --- a/src/alf/types.ts +++ b/src/alf/types.ts @@ -1,3 +1,5 @@ +import {StyleProp, ViewStyle, TextStyle} from 'react-native' + type LiteralToCommon<T extends PropertyKey> = T extends number ? number : T extends string @@ -14,3 +16,11 @@ export type Mutable<T> = { ? LiteralToCommon<T[K]> : Mutable<T[K]> } + +export type TextStyleProp = { + style?: StyleProp<TextStyle> +} + +export type ViewStyleProp = { + style?: StyleProp<ViewStyle> +} |