Update docs/frontend-system/utility-apis/02-creating.md

Co-authored-by: Patrik Oldsberg <poldsberg@gmail.com>
Signed-off-by: Fredrik Adelöw <freben@gmail.com>
This commit is contained in:
Fredrik Adelöw
2023-12-15 14:57:44 +01:00
parent 9bc836cc57
commit 67b15262f1
@@ -57,14 +57,12 @@ class WorkImpl implements WorkApi {
}
}
const workApi = createApiExtension({
api: workApiRef,
factory: () =>
createApiFactory({
api: workApiRef,
deps: { storageApi: storageApiRef },
factory: ({ storageApi }) => new WorkImpl({ storageApi }),
}),
const exampleWorkApi = createApiExtension({
factory: createApiFactory({
api: workApiRef,
deps: { storageApi: storageApiRef },
factory: ({ storageApi }) => new WorkImpl({ storageApi }),
}),
});
/**