@fluid-app/portal-sdk/widgets/worker and declare every function the widget uses. The callable exports are under Variables in the Widget Worker SDK Reference.
Declare each function in uses
uses declaration.
Choose a capability family
The public worker facade provides functions for:- portal navigation, links, fullscreen, account, store, and profile state;
- content, catalog, media, metric, and calendar reads;
- content, playlist, share, and DAM mutations;
- member access, points, todos, account updates, and MySite data.
uses declaration. For example, see getPortalProfile and navigateTo.
Handle errors and partial data
PortalFunctionError for the supported error codes.