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