Skip to content

Commit

Permalink
Update code/lib/manager-api/src/index.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Palkovic <valentin@chromatic.com>
  • Loading branch information
tmeasday and valentinpalkovic committed Jun 12, 2024
1 parent 073da49 commit 3e29715
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion code/lib/manager-api/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,11 @@ export function useArgs(): [Args, (newArgs: Args) => void, (argNames?: string[])
return [args!, updateArgs, resetArgs, initialArgs!];
}

export function useGlobals(): [Globals, (newGlobals: Globals) => void, Globals] {
export function useGlobals(): [
globals: Globals,
updateGlobals: (newGlobals: Globals) => void,
userGlobals: Globals,
] {
const api = useStorybookApi();
return [api.getGlobals(), api.updateGlobals, api.getUserGlobals()];
}
Expand Down

0 comments on commit 3e29715

Please sign in to comment.