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:58:42 +01:00
parent 67b15262f1
commit 8d469f8991
@@ -18,15 +18,19 @@ The first step toward exposing a utility API is to define its TypeScript contrac
import { createApiRef } from '@backstage/frontend-plugin-api';
/**
* Performs some work.
* @oublic
* The work interface for the Example plugin.
* @public
*/
export interface WorkApi {
/**
* Performs some work.
* @public
*/
doWork(): Promise<void>;
}
/**
* The work interface for the Example plugin.
* API Reference for {@link WorkApi}.
* @public
*/
export const workApiRef = createApiRef<WorkApi>({