(components: (PheliaMessage | PheliaModal)[])
| 256 | } |
| 257 | |
| 258 | registerComponents(components: (PheliaMessage | PheliaModal)[]) { |
| 259 | const pheliaComponents = loadMessagesFromArray(components); |
| 260 | |
| 261 | this.messageCache = pheliaComponents.reduce( |
| 262 | (cache, { message, name }) => cache.set(name, message), |
| 263 | this.messageCache |
| 264 | ); |
| 265 | } |
| 266 | |
| 267 | registerHome(home: PheliaHome) { |
| 268 | this.homeComponent = home; |
no test coverage detected