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 <[email protected]>
  • Loading branch information
tmeasday and valentinpalkovic committed Jun 25, 2024
1 parent ef80953 commit 2786bc8
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 2786bc8

Please sign in to comment.