Minor fixes

Close #2264
Close #2275
This commit is contained in:
Nicolas Gallagher
2022-03-23 11:35:41 -07:00
committed by Nicolas Gallagher
parent 3326aab292
commit 8034a57aae
8 changed files with 31 additions and 48 deletions
+8 -2
View File
@@ -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
};
}