( value: T, comments: ParsedComments, uid: string = UUID(), )
| 267 | } |
| 268 | |
| 269 | export function jsExpressionValue<T>( |
| 270 | value: T, |
| 271 | comments: ParsedComments, |
| 272 | uid: string = UUID(), |
| 273 | ): JSExpressionValue<T> { |
| 274 | return { |
| 275 | type: 'ATTRIBUTE_VALUE', |
| 276 | value: value, |
| 277 | comments: comments, |
| 278 | uid: uid, |
| 279 | } |
| 280 | } |
| 281 | |
| 282 | /** |
| 283 | If the contents of an `ATTRIBUTE_VALUE` is an object (whose values are not `JSXAttribute`s), we might still want to |
no outgoing calls