From 483e399158bceb9f6e317d3c71ab1727464ff716 Mon Sep 17 00:00:00 2001 From: Dmitry Ivakhnenko Date: Mon, 30 Jan 2023 13:57:23 -0800 Subject: [PATCH] fix type for getFlexBasis (#1222) Summary: `getFlexBasis` returns `Value` not a `number` source: https://github.com/facebook/yoga/blob/main/javascript/src_native/Node.hh#L145 Pull Request resolved: https://github.com/facebook/yoga/pull/1222 Reviewed By: rozele, cipolleschi Differential Revision: D42818313 Pulled By: NickGerleman fbshipit-source-id: cbcfe1b5d353ed86303a4de987e66f86b77ced1b --- javascript/src_js/wrapAsm.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/javascript/src_js/wrapAsm.d.ts b/javascript/src_js/wrapAsm.d.ts index 5c434cf5..83bee609 100644 --- a/javascript/src_js/wrapAsm.d.ts +++ b/javascript/src_js/wrapAsm.d.ts @@ -92,7 +92,7 @@ export type Node = { getComputedTop(): number, getComputedWidth(): number, getDisplay(): Display, - getFlexBasis(): number, + getFlexBasis(): Value, getFlexDirection(): FlexDirection, getFlexGrow(): number, getFlexShrink(): number,