(value: any)
| 51 | } |
| 52 | |
| 53 | export function asLiteral(value: any): o.Expression { |
| 54 | if (Array.isArray(value)) { |
| 55 | return o.literalArr(value.map(asLiteral)); |
| 56 | } |
| 57 | return o.literal(value, o.INFERRED_TYPE); |
| 58 | } |
| 59 | |
| 60 | /** |
| 61 | * Serializes inputs and outputs for `defineDirective` and `defineComponent`. |
no test coverage detected
searching dependent graphs…