mirror of
https://github.com/zoriya/react-native-web.git
synced 2026-06-01 01:59:10 +00:00
committed by
Nicolas Gallagher
parent
3326aab292
commit
8034a57aae
Vendored
+8
-2
@@ -10,13 +10,13 @@ type InlineStyle = {
|
||||
type EitherStyle = CompiledStyle | InlineStyle;
|
||||
|
||||
type StylesArray<+T> = T | $ReadOnlyArray<StylesArray<T>>;
|
||||
type Styles = StylesArray<CompiledStyle | InlineStyle | false>;
|
||||
type Styles = StylesArray<EitherStyle | false | void>;
|
||||
type Style<+T = EitherStyle> = StylesArray<false | ?T>;
|
||||
|
||||
type StyleqOptions = {
|
||||
disableCache?: boolean,
|
||||
disableMix?: boolean,
|
||||
transform?: (CompiledStyle) => CompiledStyle,
|
||||
transform?: (EitherStyle) => EitherStyle,
|
||||
};
|
||||
|
||||
type StyleqResult = [string, InlineStyle | null];
|
||||
@@ -32,3 +32,9 @@ declare module "styleq" {
|
||||
styleq: IStyleq
|
||||
};
|
||||
}
|
||||
|
||||
declare module "styleq/transform-localize-style" {
|
||||
declare module.exports: {
|
||||
localizeStyle: (style: EitherStyle, isRTL: boolean) => EitherStyle
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user