(type: string | typeof UI5Element, props: Record<string, any>, key: string)
| 36 | } |
| 37 | |
| 38 | export function preprocess(type: string | typeof UI5Element, props: Record<string, any>, key: string) { |
| 39 | let tag: string; |
| 40 | if (isUI5ElementClass(type)) { |
| 41 | tag = type.getMetadata().getTag(); |
| 42 | convertEventScoping(type, props, key); |
| 43 | } else { |
| 44 | tag = type; |
| 45 | } |
| 46 | |
| 47 | // convert class object to string |
| 48 | if (typeof props.class === "object") { |
| 49 | props.class = hash2str(props.class); |
| 50 | } |
| 51 | |
| 52 | return tag; |
| 53 | } |
no test coverage detected
searching dependent graphs…