frontend-plugin-api: switch naming recommendation from define to defineParams

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2025-08-01 11:11:51 +02:00
parent e739a01e2d
commit 147482b700
40 changed files with 225 additions and 214 deletions
@@ -62,8 +62,8 @@ class WorkImpl implements WorkApi {
const workApi = ApiBlueprint.make({
name: 'work',
params: define =>
define({
params: defineParams =>
defineParams({
api: workApiRef,
deps: { storageApi: storageApiRef },
factory: ({ storageApi }) => {
@@ -51,8 +51,8 @@ import {
import { MyApiImpl } from './MyApiImpl';
const myApi = ApiBlueprint.make({
params: define =>
define({
params: defineParams =>
defineParams({
api: myApiRef,
deps: {
configApi: configApiRef,