(injectOptions: any, injectedKey = 'b')
| 377 | }) |
| 378 | |
| 379 | const defineChild = (injectOptions: any, injectedKey = 'b') => |
| 380 | ({ |
| 381 | inject: injectOptions, |
| 382 | render() { |
| 383 | return this[injectedKey] |
| 384 | }, |
| 385 | }) as any |
| 386 | |
| 387 | const ChildA = defineChild(['a'], 'a') |
| 388 | const ChildB = defineChild({ b: 'a' }) |