(elementList: string[])
| 1183 | }; |
| 1184 | |
| 1185 | function buildAllowedChildren(elementList: string[]): { [k: string]: typeof Element } { |
| 1186 | const rtn = {}; |
| 1187 | for (const element of elementList) { |
| 1188 | rtn[element.replace(/^_/, '')] = ElementTypeMap[element] || Element; |
| 1189 | } |
| 1190 | return rtn; |
| 1191 | } |
| 1192 | |
| 1193 | /** |
| 1194 | * Return the first matching namespace for the provided prefix. |
no outgoing calls
no test coverage detected