Skip to content

Commit 1d7424a

Browse files
revert styleprop generic
1 parent 9a12734 commit 1d7424a

24 files changed

Lines changed: 35 additions & 33 deletions

packages/layout/src/types/canvas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface CanvasProps extends NodeProps {
1616
export type CanvasNode = {
1717
type: typeof P.Canvas;
1818
props: CanvasProps;
19-
style?: StyleProp<Style | Style[]>;
19+
style?: StyleProp;
2020
box?: Box;
2121
origin?: Origin;
2222
yogaNode?: YogaNode;

packages/layout/src/types/checkbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ interface CheckboxProps extends FormCommonProps {
1616
export type CheckboxNode = {
1717
type: typeof P.Checkbox;
1818
props: CheckboxProps;
19-
style?: StyleProp<Style | Style[]>;
19+
style?: StyleProp;
2020
box?: Box;
2121
origin?: Origin;
2222
yogaNode?: YogaNode;

packages/layout/src/types/circle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ interface SafeCircleProps extends SafeSVGPresentationAttributes {
2424
export type CircleNode = {
2525
type: typeof P.Circle;
2626
props: CircleProps;
27-
style?: StyleProp<Style | Style[]>;
27+
style?: StyleProp;
2828
box?: never;
2929
origin?: Origin;
3030
yogaNode?: never;

packages/layout/src/types/document.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export type DocumentNode = {
4848
props: DocumentProps;
4949
box?: never;
5050
origin?: never;
51-
style?: StyleProp<Style | Style[]>;
51+
style?: StyleProp;
5252
yoga?: YogaInstance;
5353
yogaNode?: never;
5454
children: PageNode[];

packages/layout/src/types/ellipse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface SafeEllipseProps extends SafeSVGPresentationAttributes {
2525
export type EllipseNode = {
2626
type: typeof P.Ellipse;
2727
props: EllipseProps;
28-
style?: StyleProp<Style | Style[]>;
28+
style?: StyleProp;
2929
box?: never;
3030
origin?: never;
3131
yogaNode?: never;

packages/layout/src/types/field-set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ interface FieldSetProps extends NodeProps {
1414
export type FieldSetNode = {
1515
type: typeof P.FieldSet;
1616
props: FieldSetProps;
17-
style?: StyleProp<Style | Style[]>;
17+
style?: StyleProp;
1818
box?: Box;
1919
origin?: Origin;
2020
yogaNode?: YogaNode;

packages/layout/src/types/g.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
} from './base';
1818

1919
interface GProps extends SVGPresentationAttributes {
20-
style?: StyleProp<Style | Style[]>;
20+
style?: StyleProp;
2121
}
2222

2323
interface SafeGProps extends SafeSVGPresentationAttributes {
@@ -27,7 +27,7 @@ interface SafeGProps extends SafeSVGPresentationAttributes {
2727
export type GNode = {
2828
type: typeof P.G;
2929
props: GProps;
30-
style?: StyleProp<Style | Style[]>;
30+
style?: StyleProp;
3131
box?: never;
3232
origin?: never;
3333
yogaNode?: never;

packages/layout/src/types/image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export type ImageNode = {
6565
type: typeof P.Image;
6666
props: ImageProps;
6767
image?: Image;
68-
style?: StyleProp<Style | Style[]>;
68+
style?: StyleProp;
6969
box?: Box;
7070
origin?: Origin;
7171
yogaNode?: YogaNode;

packages/layout/src/types/line.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface SafeLineProps extends SafeSVGPresentationAttributes {
2525
export type LineNode = {
2626
type: typeof P.Line;
2727
props: LineProps;
28-
style?: StyleProp<Style | Style[]>;
28+
style?: StyleProp;
2929
box?: never;
3030
origin?: never;
3131
yogaNode?: never;

packages/layout/src/types/link.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ interface LinkProps extends NodeProps {
2222
export type LinkNode = {
2323
type: typeof P.Link;
2424
props: LinkProps;
25-
style?: StyleProp<Style | Style[]>;
25+
style?: StyleProp;
2626
box?: Box;
2727
origin?: Origin;
2828
yogaNode?: YogaNode;

0 commit comments

Comments
 (0)