Skip to content

Commit

Permalink
Enforce readonly on cssMap
Browse files Browse the repository at this point in the history
  • Loading branch information
liamqma committed Aug 24, 2023
1 parent 4738f0d commit ef4bcce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react/src/css-map/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ import { createSetupError } from '../utils/error';
*/
export default function cssMap<T extends string, TProps = unknown>(
_styles: Record<T, CssObject<TProps> | CssObject<TProps>[]>
): Record<T, CSSProps<TProps>> {
): Readonly<Record<T, Readonly<CSSProps<TProps>>>> {
throw createSetupError();
}

0 comments on commit ef4bcce

Please sign in to comment.