Skip to content

Commit 271a58a

Browse files
hawkrivessouhe
authored andcommitted
add useTheme to ThemingType (#42)
1 parent d27f6a3 commit 271a58a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/createTheming.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import type { $DeepShape } from './types';
1111
export type ThemingType<T> = {
1212
ThemeProvider: ThemeProviderType<T>,
1313
withTheme: WithThemeType<T>,
14+
useTheme(overrides?: $DeepShape<T>): T,
1415
};
1516

1617
export default function createTheming<T: Object>(

0 commit comments

Comments
 (0)