Skip to content

Commit

Permalink
[@mantine/emotion] Fix incorrect types of createStyles classes (#6490)
Browse files Browse the repository at this point in the history
  • Loading branch information
Njiallu authored Jul 10, 2024
1 parent 7c9e403 commit c1a9717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@mantine/emotion/src/create-styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function createStyles<
const classes = Object.keys(cssObject).reduce<Record<string, string>>((acc, key) => {
acc[key] = css(cssObject[key]);
return acc;
}, {});
}, {}) as Record<keyof Input, string>;

return { classes, cx, theme };
};
Expand Down

0 comments on commit c1a9717

Please sign in to comment.