11import { pxToLayoutSize } from "../conversionTables" ;
22
3- const getFlexDirection = ( node : inferredAutoLayoutResult ) : string =>
3+ const getFlexDirection = ( node : InferredAutoLayoutResult ) : string =>
44 node . layoutMode === "HORIZONTAL" ? "" : "flex-col" ;
55
6- const getJustifyContent = ( node : inferredAutoLayoutResult ) : string => {
6+ const getJustifyContent = ( node : InferredAutoLayoutResult ) : string => {
77 switch ( node . primaryAxisAlignItems ) {
88 case "MIN" :
99 return "justify-start" ;
@@ -16,7 +16,7 @@ const getJustifyContent = (node: inferredAutoLayoutResult): string => {
1616 }
1717} ;
1818
19- const getAlignItems = ( node : inferredAutoLayoutResult ) : string => {
19+ const getAlignItems = ( node : InferredAutoLayoutResult ) : string => {
2020 switch ( node . counterAxisAlignItems ) {
2121 case "MIN" :
2222 return "items-start" ;
@@ -29,14 +29,14 @@ const getAlignItems = (node: inferredAutoLayoutResult): string => {
2929 }
3030} ;
3131
32- const getGap = ( node : inferredAutoLayoutResult ) : string =>
32+ const getGap = ( node : InferredAutoLayoutResult ) : string =>
3333 node . itemSpacing > 0 && node . primaryAxisAlignItems !== "SPACE_BETWEEN"
3434 ? `gap-${ pxToLayoutSize ( node . itemSpacing ) } `
3535 : "" ;
3636
3737const getFlex = (
3838 node : SceneNode ,
39- autoLayout : inferredAutoLayoutResult
39+ autoLayout : InferredAutoLayoutResult
4040) : string =>
4141 node . parent &&
4242 "layoutMode" in node . parent &&
@@ -46,7 +46,7 @@ const getFlex = (
4646
4747export const tailwindAutoLayoutProps = (
4848 node : SceneNode ,
49- autoLayout : inferredAutoLayoutResult
49+ autoLayout : InferredAutoLayoutResult
5050) : string =>
5151 Object . values ( {
5252 flexDirection : getFlexDirection ( autoLayout ) ,
0 commit comments