(size: any)
| 2043 | } |
| 2044 | |
| 2045 | function sizeValue(size: any): JSONObject | null { |
| 2046 | if (!size) { |
| 2047 | return null; |
| 2048 | } |
| 2049 | const width = finiteNumber(size.width); |
| 2050 | const height = finiteNumber(size.height); |
| 2051 | if (width == null || height == null) { |
| 2052 | return null; |
| 2053 | } |
| 2054 | return { |
| 2055 | width, |
| 2056 | height, |
| 2057 | }; |
| 2058 | } |
| 2059 | |
| 2060 | function insetsValue(insets: any): JSONObject | null { |
| 2061 | if (!insets) { |
no test coverage detected