core-api: change ApiFactory.implements to .api

This commit is contained in:
Patrik Oldsberg
2020-09-04 17:45:38 +02:00
parent beb9269841
commit 38b6703102
20 changed files with 54 additions and 59 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ import { lighthouseApiRef, LighthouseRestApi } from '../src';
createDevApp()
.registerPlugin(plugin)
.registerApi({
implements: lighthouseApiRef,
api: lighthouseApiRef,
deps: {},
factory: () => new LighthouseRestApi('http://localhost:3003'),
})
+1 -1
View File
@@ -24,7 +24,7 @@ export const plugin = createPlugin({
id: 'lighthouse',
apis: [
createApiFactory({
implements: lighthouseApiRef,
api: lighthouseApiRef,
deps: { configApi: configApiRef },
factory: ({ configApi }) => LighthouseRestApi.fromConfig(configApi),
}),