(value: T)
| 188 | }; |
| 189 | |
| 190 | function withCornerDefaults< |
| 191 | T extends { |
| 192 | roundingType?: CornerRoundingType; |
| 193 | rounding_type?: CornerRoundingType; |
| 194 | }, |
| 195 | >(value: T): T & { roundingType: CornerRoundingType } { |
| 196 | const roundingType = value.roundingType ?? value.rounding_type ?? "squircle"; |
| 197 | return { |
| 198 | ...value, |
| 199 | roundingType, |
| 200 | }; |
| 201 | } |
| 202 | |
| 203 | export function normalizeProject( |
| 204 | config: ProjectConfiguration, |