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 Mar 29, 2024
1 parent 89e8456 commit 6539f37
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 @@ -496,7 +496,11 @@ export function useArgs(): [Args, (newArgs: Args) => void, (argNames?: string[])
return [args!, updateArgs, resetArgs];
}

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 6539f37

Please sign in to comment.