Skip to content

Commit b00d4c8

Browse files
committed
Fix types of deepmerge
Not sure why, but the inferred type looks wrong
1 parent 09ae7da commit b00d4c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: packages/bento-design-system/src/BentoConfigContext.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ export function BentoConfigProvider({
2222
// So we retrieve the parent config via useBentoConfig(), which will default to the default config
2323
// in case this is the top level provider.
2424
const parentConfig = useBentoConfig();
25+
2526
return (
26-
<BentoConfigContext.Provider value={deepmerge(parentConfig, config)}>
27+
<BentoConfigContext.Provider value={deepmerge(parentConfig, config) as BentoConfig}>
2728
{children}
2829
</BentoConfigContext.Provider>
2930
);

0 commit comments

Comments
 (0)