Skip to content

Commit 6539f37

Browse files
Update code/lib/manager-api/src/index.tsx
Co-authored-by: Valentin Palkovic <[email protected]>
1 parent 89e8456 commit 6539f37

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

code/lib/manager-api/src/index.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,11 @@ export function useArgs(): [Args, (newArgs: Args) => void, (argNames?: string[])
496496
return [args!, updateArgs, resetArgs];
497497
}
498498

499-
export function useGlobals(): [Globals, (newGlobals: Globals) => void, Globals] {
499+
export function useGlobals(): [
500+
globals: Globals,
501+
updateGlobals: (newGlobals: Globals) => void,
502+
userGlobals: Globals,
503+
] {
500504
const api = useStorybookApi();
501505
return [api.getGlobals(), api.updateGlobals, api.getUserGlobals()];
502506
}

0 commit comments

Comments
 (0)