core-api: change ApiFactory.implements to .api
This commit is contained in:
@@ -21,7 +21,7 @@ import { lighthouseApiRef, LighthouseRestApi } from '../src';
|
||||
createDevApp()
|
||||
.registerPlugin(plugin)
|
||||
.registerApi({
|
||||
implements: lighthouseApiRef,
|
||||
api: lighthouseApiRef,
|
||||
deps: {},
|
||||
factory: () => new LighthouseRestApi('http://localhost:3003'),
|
||||
})
|
||||
|
||||
@@ -24,7 +24,7 @@ export const plugin = createPlugin({
|
||||
id: 'lighthouse',
|
||||
apis: [
|
||||
createApiFactory({
|
||||
implements: lighthouseApiRef,
|
||||
api: lighthouseApiRef,
|
||||
deps: { configApi: configApiRef },
|
||||
factory: ({ configApi }) => LighthouseRestApi.fromConfig(configApi),
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user