Skip to content

Commit

Permalink
[system] Improve style function typings
Browse files Browse the repository at this point in the history
  • Loading branch information
abukurov committed Sep 23, 2019
1 parent 6a1c305 commit 745639f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/material-ui-system/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export interface StyleOptions<PropKey, Theme extends object> {
}
export function style<PropKey extends string, Theme extends object>(
options: StyleOptions<PropKey, Theme>,
): StyleFunction<{ [K in PropKey]: unknown } & { theme: Theme }>;
): StyleFunction<{ [K in PropKey]?: unknown } & { theme: Theme }>;

// typography.js
export const fontFamily: SimpleStyleFunction<'fontFamily'>;
Expand Down

0 comments on commit 745639f

Please sign in to comment.