Type '(component: ComponentConstructor<Component<Term>>) => { lazyRender: () => Promise<(params: any, actions: any) => any>; editor: NamedNode<...>; extends?: NamedNode<...> | undefined; } | { ...; }' is not assignable to type '(component: ComponentConstructor<Component<Term>>) => ComponentConstructor<Component<Term>>'.