frontend-plugin-api: return output from extension factories instead
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -88,10 +88,10 @@ export function createEndpointExtension<TConfig extends {}>(options: {
|
||||
output: {
|
||||
endpoint: endpointDataRef,
|
||||
},
|
||||
factory({ bind, config }) {
|
||||
bind({
|
||||
factory({ config }) {
|
||||
return {
|
||||
endpoint: options.factory({ config }).endpoint,
|
||||
});
|
||||
};
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user