复现
即使只启用一个 Feature,features 也必须是数组:
src/index.ts
import { createApp } from 'func'
import { withCompletion } from 'func/completion'
import { AppModule } from './app.module'
createApp(AppModule, {
features: withCompletion({ bin: 'ship' }) as any,
})如何修复
把每个 Feature factory 的返回值放入数组,例如 features: [withCompletion({ bin: 'ship' })]。如果不需要应用 Feature,可以省略 features 或传入空数组。收到的原始值位于 details.features。